Lines Matching refs:request
52 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
54 map_mask_to_chr_mask(ad->request)); in file_audit_cb()
62 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
97 const char *op, u32 request, const char *name, in aa_audit_file() argument
105 ad.request = request; in aa_audit_file()
121 ad.request &= mask; in aa_audit_file()
123 if (likely(!ad.request)) in aa_audit_file()
128 ad.request = ad.request & ~perms->allow; in aa_audit_file()
129 AA_BUG(!ad.request); in aa_audit_file()
131 if (ad.request & perms->kill) in aa_audit_file()
135 if ((ad.request & perms->quiet) && in aa_audit_file()
138 ad.request &= ~perms->quiet; in aa_audit_file()
140 if (!ad.request) in aa_audit_file()
144 ad.denied = ad.request & ~perms->allow; in aa_audit_file()
151 const char **name, struct path_cond *cond, u32 request) in path_name() argument
162 profile, &nullperms, op, request, *name, in path_name()
223 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
234 if (request & ~perms->allow) in __aa_path_perm()
237 profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
244 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
256 request); in profile_path_perm()
259 return __aa_path_perm(op, subj_cred, profile, name, request, cond, in profile_path_perm()
277 const struct path *path, int flags, u32 request, in aa_path_perm() argument
292 request, cond, flags, &perms)); in aa_path_perm()
329 u32 request = AA_MAY_LINK; in profile_path_link() local
383 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
386 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
387 if (request & ~lperms.allow) { in profile_path_link()
392 request |= MAY_EXEC; in profile_path_link()
402 profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
458 u32 request) in update_file_ctx() argument
473 fctx->allow |= request; in update_file_ctx()
481 u32 request, u32 denied, bool in_atomic) in __file_path_perm() argument
508 request, &cond, flags, &perms)); in __file_path_perm()
522 buffer, request, &cond, flags, in __file_path_perm()
528 buffer, request, &cond, flags, in __file_path_perm()
532 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
542 u32 request, u32 denied) in __file_sock_perm() argument
551 error = aa_sock_file_perm(subj_cred, label, op, request, file); in __file_sock_perm()
556 request, file)); in __file_sock_perm()
559 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
571 u32 request) in __unix_needs_revalidation() argument
579 if (request & NET_PEER_MASK) in __unix_needs_revalidation()
606 u32 request, bool in_atomic) in aa_file_perm() argument
629 denied = request & ~fctx->allow; in aa_file_perm()
631 __unix_needs_revalidation(file, label, request) || in aa_file_perm()
643 request, denied, in_atomic); in aa_file_perm()
647 request, denied); in aa_file_perm()