Lines Matching refs:request
48 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
50 map_mask_to_chr_mask(aad(sa)->request)); in file_audit_cb()
58 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
91 const char *op, u32 request, const char *name, in aa_audit_file() argument
99 aad(&sa)->request = request; in aa_audit_file()
115 aad(&sa)->request &= mask; in aa_audit_file()
117 if (likely(!aad(&sa)->request)) in aa_audit_file()
122 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file()
123 AA_BUG(!aad(&sa)->request); in aa_audit_file()
125 if (aad(&sa)->request & perms->kill) in aa_audit_file()
129 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file()
132 aad(&sa)->request &= ~perms->quiet; in aa_audit_file()
134 if (!aad(&sa)->request) in aa_audit_file()
138 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file()
157 const char **name, struct path_cond *cond, u32 request) in path_name() argument
167 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
267 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
275 if (request & ~perms->allow) in __aa_path_perm()
277 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
283 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
295 request); in profile_path_perm()
298 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
314 const struct path *path, int flags, u32 request, in aa_path_perm() argument
328 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
364 u32 request = AA_MAY_LINK; in profile_path_link() local
415 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
418 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
419 if (request & ~lperms.allow) { in profile_path_link()
424 request |= MAY_EXEC; in profile_path_link()
433 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
485 u32 request) in update_file_ctx() argument
500 fctx->allow |= request; in update_file_ctx()
507 u32 request, u32 denied, bool in_atomic) in __file_path_perm() argument
531 request, &cond, flags, &perms)); in __file_path_perm()
544 buffer, request, &cond, flags, in __file_path_perm()
549 buffer, request, &cond, flags, in __file_path_perm()
553 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
562 u32 request, u32 denied) in __file_sock_perm() argument
574 error = aa_sock_file_perm(label, op, request, sock); in __file_sock_perm()
578 last_error(error, aa_sock_file_perm(flabel, op, request, sock)); in __file_sock_perm()
581 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
597 u32 request, bool in_atomic) in aa_file_perm() argument
620 denied = request & ~fctx->allow; in aa_file_perm()
632 error = __file_path_perm(op, label, flabel, file, request, in aa_file_perm()
636 error = __file_sock_perm(op, label, flabel, file, request, in aa_file_perm()