Lines Matching refs:request

51 	if (ad->request & AA_AUDIT_FILE_MASK) {  in file_audit_cb()
53 map_mask_to_chr_mask(ad->request)); in file_audit_cb()
61 if (ad->request & AA_AUDIT_FILE_MASK) { in file_audit_cb()
96 const char *op, u32 request, const char *name, in aa_audit_file() argument
104 ad.request = request; in aa_audit_file()
120 ad.request &= mask; in aa_audit_file()
122 if (likely(!ad.request)) in aa_audit_file()
127 ad.request = ad.request & ~perms->allow; in aa_audit_file()
128 AA_BUG(!ad.request); in aa_audit_file()
130 if (ad.request & perms->kill) in aa_audit_file()
134 if ((ad.request & perms->quiet) && in aa_audit_file()
137 ad.request &= ~perms->quiet; in aa_audit_file()
139 if (!ad.request) in aa_audit_file()
143 ad.denied = ad.request & ~perms->allow; in aa_audit_file()
150 const char **name, struct path_cond *cond, u32 request) in path_name() argument
161 profile, &nullperms, op, request, *name, in path_name()
217 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
228 if (request & ~perms->allow) in __aa_path_perm()
231 profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
238 const struct path *path, char *buffer, u32 request, in profile_path_perm() argument
250 request); in profile_path_perm()
253 return __aa_path_perm(op, subj_cred, profile, name, request, cond, in profile_path_perm()
271 const struct path *path, int flags, u32 request, in aa_path_perm() argument
286 request, cond, flags, &perms)); in aa_path_perm()
324 u32 request = AA_MAY_LINK; in profile_path_link() local
378 request = lperms.allow & ~AA_MAY_LINK; in profile_path_link()
381 request |= AA_AUDIT_FILE_MASK & (lperms.allow & ~perms.allow); in profile_path_link()
382 if (request & ~lperms.allow) { in profile_path_link()
387 request |= MAY_EXEC; in profile_path_link()
397 profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
451 u32 request) in update_file_ctx() argument
466 fctx->allow |= request; in update_file_ctx()
474 u32 request, u32 denied, bool in_atomic) in __file_path_perm() argument
501 request, &cond, flags, &perms)); in __file_path_perm()
515 buffer, request, &cond, flags, in __file_path_perm()
521 buffer, request, &cond, flags, in __file_path_perm()
525 update_file_ctx(file_ctx(file), label, request); in __file_path_perm()
535 u32 request, u32 denied) in __file_sock_perm() argument
547 error = aa_sock_file_perm(subj_cred, label, op, request, sock); in __file_sock_perm()
552 request, sock)); in __file_sock_perm()
555 update_file_ctx(file_ctx(file), label, request); in __file_sock_perm()
573 u32 request, bool in_atomic) in aa_file_perm() argument
596 denied = request & ~fctx->allow; in aa_file_perm()
609 request, denied, in_atomic); in aa_file_perm()
613 request, denied); in aa_file_perm()