Lines Matching refs:cond
168 const char **name, struct path_cond *cond, u32 request) in path_name() argument
179 NULL, NULL, cond->uid, info, error)); in path_name()
225 struct path_cond *cond) in aa_compute_fperms() argument
234 if (uid_eq(current_fsuid(), cond->uid)) { in aa_compute_fperms()
267 const char *name, struct path_cond *cond, in aa_str_perms() argument
272 *perms = aa_compute_fperms(dfa, state, cond); in aa_str_perms()
278 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
285 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
289 cond->uid, NULL, e); in __aa_path_perm()
295 struct path_cond *cond, int flags, in profile_path_perm() argument
305 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
309 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
326 struct path_cond *cond) in aa_path_perm() argument
333 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
338 cond, flags, &perms)); in aa_path_perm()
368 struct path_cond *cond) in profile_path_link() argument
378 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
384 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
391 cond, &lperms); in profile_path_link()
398 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
420 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
443 NULL, cond->uid, info, error); in profile_path_link()
469 struct path_cond cond = { in aa_path_link() local
481 buffer2, &cond)); in aa_path_link()
514 struct path_cond cond = { in __file_path_perm() local
526 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
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()