Lines Matching refs:request

50 	if (aad(sa)->request & AA_AUDIT_FILE_MASK) {  in file_audit_cb()
52 map_mask_to_chr_mask(aad(sa)->request)); in file_audit_cb()
60 if (aad(sa)->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
93 const char *op, u32 request, const char *name, in aa_audit_file() argument
101 aad(&sa)->request = request; in aa_audit_file()
117 aad(&sa)->request &= mask; in aa_audit_file()
119 if (likely(!aad(&sa)->request)) in aa_audit_file()
124 aad(&sa)->request = aad(&sa)->request & ~perms->allow; in aa_audit_file()
125 AA_BUG(!aad(&sa)->request); in aa_audit_file()
127 if (aad(&sa)->request & perms->kill) in aa_audit_file()
131 if ((aad(&sa)->request & perms->quiet) && in aa_audit_file()
134 aad(&sa)->request &= ~perms->quiet; in aa_audit_file()
136 if (!aad(&sa)->request) in aa_audit_file()
140 aad(&sa)->denied = aad(&sa)->request & ~perms->allow; in aa_audit_file()
159 const char **name, struct path_cond *cond, u32 request) in path_name() argument
169 aa_audit_file(profile, &nullperms, op, request, *name, in path_name()
269 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
277 if (request & ~perms->allow) in __aa_path_perm()
279 return aa_audit_file(profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
285 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
297 request); in profile_path_perm()
300 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
316 const struct path *path, int flags, u32 request, in aa_path_perm() argument
330 profile_path_perm(op, profile, path, buffer, request, in aa_path_perm()
366 u32 request = AA_MAY_LINK; in profile_path_link() local
417 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
420 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
421 if (request & ~lperms.allow) { in profile_path_link()
426 request |= MAY_EXEC; in profile_path_link()
435 return aa_audit_file(profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
487 u32 request) in update_file_ctx() argument
502 fctx->allow |= request; in update_file_ctx()
509 u32 request, u32 denied, bool in_atomic) in __file_path_perm() argument
533 request, &cond, flags, &perms)); in __file_path_perm()
546 buffer, request, &cond, flags, in __file_path_perm()
551 buffer, request, &cond, flags, in __file_path_perm()
555 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
564 u32 request, u32 denied) in __file_sock_perm() argument
576 error = aa_sock_file_perm(label, op, request, sock); in __file_sock_perm()
580 last_error(error, aa_sock_file_perm(flabel, op, request, sock)); in __file_sock_perm()
583 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
599 u32 request, bool in_atomic) in aa_file_perm() argument
622 denied = request & ~fctx->allow; in aa_file_perm()
634 error = __file_path_perm(op, label, flabel, file, request, in aa_file_perm()
638 error = __file_sock_perm(op, label, flabel, file, request, in aa_file_perm()