Lines Matching refs:request
61 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
63 audit_file_mask(ab, aad(sa)->request); in file_audit_cb()
69 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
102 const char *op, u32 request, const char *name, in aa_audit_file() argument
110 aad(&sa)->request = request; in aa_audit_file()
126 aad(&sa)->request &= mask; in aa_audit_file()
128 if (likely(!aad(&sa)->request)) in aa_audit_file()
133 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file()
134 AA_BUG(!aad(&sa)->request); in aa_audit_file()
136 if (aad(&sa)->request & perms->kill) in aa_audit_file()
140 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file()
143 aad(&sa)->request &= ~perms->quiet; in aa_audit_file()
145 if (!aad(&sa)->request) in aa_audit_file()
149 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file()
168 const char **name, struct path_cond *cond, u32 request) in path_name() argument
178 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
278 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
286 if (request & ~perms->allow) in __aa_path_perm()
288 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
294 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
306 request); in profile_path_perm()
309 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
325 const struct path *path, int flags, u32 request, in aa_path_perm() argument
337 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
373 u32 request = AA_MAY_LINK; in profile_path_link() local
424 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
427 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
428 if (request & ~lperms.allow) { in profile_path_link()
433 request |= MAY_EXEC; in profile_path_link()
442 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
488 u32 request) in update_file_ctx() argument
503 fctx->allow |= request; in update_file_ctx()
510 u32 request, u32 denied) in __file_path_perm() argument
532 request, &cond, flags, &perms)); in __file_path_perm()
545 buffer, request, &cond, flags, in __file_path_perm()
550 buffer, request, &cond, flags, in __file_path_perm()
554 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
563 u32 request, u32 denied) in __file_sock_perm() argument
575 error = aa_sock_file_perm(label, op, request, sock); in __file_sock_perm()
579 last_error(error, aa_sock_file_perm(flabel, op, request, sock)); in __file_sock_perm()
582 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
597 u32 request) in aa_file_perm() argument
620 denied = request & ~fctx->allow; in aa_file_perm()
628 error = __file_path_perm(op, label, flabel, file, request, in aa_file_perm()
632 error = __file_sock_perm(op, label, flabel, file, request, in aa_file_perm()