Lines Matching refs:request
133 if (ad->request & NET_PERMS_MASK) { in audit_net_cb()
135 aa_audit_perm_mask(ab, ad->request, NULL, 0, in audit_net_cb()
151 if (ad->request & NET_PEER_MASK) { in audit_net_cb()
166 aa_state_t state, u32 request, in aa_do_perms() argument
179 return aa_check_perms(profile, &perms, request, ad, in aa_do_perms()
189 aa_state_t state, u32 request) in early_match() argument
194 if (((p->allow & request) != request) && (p->allow & AA_CONT_MATCH)) in early_match()
225 u32 request, u16 af, int type, int protocol, in aa_match_to_prot() argument
236 *p = early_match(policy, state, request); in aa_match_to_prot()
251 struct apparmor_audit_data *ad, u32 request, u16 family, in aa_profile_af_perm() argument
267 state = aa_match_to_prot(rules->policy, state, request, family, type, in aa_profile_af_perm()
269 return aa_do_perms(profile, rules->policy, state, request, p, ad); in aa_profile_af_perm()
273 const char *op, u32 request, u16 family, int type, int protocol) in aa_af_perm() argument
279 aa_profile_af_perm(profile, &ad, request, family, in aa_af_perm()
285 const char *op, u32 request, in aa_label_sk_perm() argument
300 aa_profile_af_sk_perm(profile, &ad, request, sk)); in aa_label_sk_perm()
306 int aa_sk_perm(const char *op, u32 request, struct sock *sk) in aa_sk_perm() argument
316 error = aa_label_sk_perm(current_cred(), label, op, request, sk); in aa_sk_perm()
324 const char *op, u32 request, struct file *file) in aa_sock_file_perm() argument
333 return aa_unix_file_perm(subj_cred, label, op, request, file); in aa_sock_file_perm()
334 return aa_label_sk_perm(subj_cred, label, op, request, sock->sk); in aa_sock_file_perm()
359 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() argument
390 return aa_check_perms(profile, &perms, request, ad, audit_net_cb); in aa_secmark_perm()
393 int apparmor_secmark_check(struct aa_label *label, char *op, u32 request, in apparmor_secmark_check() argument
400 aa_secmark_perm(profile, request, secid, in apparmor_secmark_check()