Lines Matching refs:request

85 				 aa_state_t state, u32 request,  in match_to_local()  argument
91 state = aa_match_to_prot(policy, state, request, PF_UNIX, type, in match_to_local()
123 aa_state_t state, u32 request, in match_to_sk() argument
130 return match_to_local(policy, state, request, u->sk.sk_type, in match_to_sk()
139 u32 request, struct unix_sock *u, in match_to_cmd() argument
145 state = match_to_sk(policy, state, request, u, p, info); in match_to_cmd()
156 u32 request, struct unix_sock *u, in match_to_peer() argument
162 state = match_to_cmd(policy, state, request, u, CMD_ADDR, p, info); in match_to_peer()
174 u32 request, struct aa_profile *peer, in match_label() argument
191 return aa_do_perms(profile, rule->policy, state, request, p, ad); in match_label()
227 u32 request, struct sock *sk, struct path *path) in profile_sk_perm() argument
240 return unix_fs_perm(ad->op, request, ad->subj_cred, in profile_sk_perm()
244 state = match_to_sk(rules->policy, state, request, unix_sk(sk), in profile_sk_perm()
247 return aa_do_perms(profile, rules->policy, state, request, p, in profile_sk_perm()
251 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_sk_perm()
351 static int profile_opt_perm(struct aa_profile *profile, u32 request, in profile_opt_perm() argument
368 return unix_fs_perm(ad->op, request, in profile_opt_perm()
372 state = match_to_cmd(rules->policy, state, request, unix_sk(sk), in profile_opt_perm()
380 return aa_do_perms(profile, rules->policy, state, request, p, in profile_opt_perm()
384 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_opt_perm()
388 static int profile_peer_perm(struct aa_profile *profile, u32 request, in profile_peer_perm() argument
410 return unix_fs_perm(ad->op, request, ad->subj_cred, in profile_peer_perm()
413 return unix_fs_perm(ad->op, request, ad->subj_cred, in profile_peer_perm()
415 state = match_to_peer(rules->policy, state, request, in profile_peer_perm()
420 match_label(profile, rules, state, request, in profile_peer_perm()
424 return aa_profile_af_sk_perm(profile, ad, request, sk); in profile_peer_perm()
447 const char *op, u32 request, struct sock *sk, in aa_unix_label_sk_perm() argument
455 profile_sk_perm(profile, &ad, request, sk, in aa_unix_label_sk_perm()
462 int aa_unix_sock_perm(const char *op, u32 request, struct socket *sock) in aa_unix_sock_perm() argument
469 request, sock->sk, in aa_unix_sock_perm()
580 int aa_unix_opt_perm(const char *op, u32 request, struct socket *sock, in aa_unix_opt_perm() argument
592 profile_opt_perm(profile, request, sock->sk, in aa_unix_opt_perm()
601 struct aa_label *label, const char *op, u32 request, in unix_peer_perm() argument
613 profile_peer_perm(profile, request, sk, path, in unix_peer_perm()
624 struct aa_label *label, const char *op, u32 request, in aa_unix_peer_perm() argument
638 return unix_peer_perm(subj_cred, label, op, request, sk, in aa_unix_peer_perm()
710 const char *op, u32 request, struct file *file) in aa_unix_file_perm() argument
717 u32 sk_req = request & ~NET_PEER_MASK; in aa_unix_file_perm()
742 sk_req = request; in aa_unix_file_perm()
758 unix_fs_perm(op, request, subj_cred, label, in aa_unix_file_perm()