Lines Matching refs:cond
159 const char **name, struct path_cond *cond, u32 request) in path_name() argument
170 NULL, NULL, cond->uid, info, error)); in path_name()
216 struct path_cond *cond) in aa_compute_fperms() argument
225 if (uid_eq(current_fsuid(), cond->uid)) { in aa_compute_fperms()
258 const char *name, struct path_cond *cond, in aa_str_perms() argument
263 *perms = aa_compute_fperms(dfa, state, cond); in aa_str_perms()
269 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
276 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
280 cond->uid, NULL, e); in __aa_path_perm()
286 struct path_cond *cond, int flags, in profile_path_perm() argument
296 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
300 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
317 struct path_cond *cond) in aa_path_perm() argument
324 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
331 cond, flags, &perms)); in aa_path_perm()
361 struct path_cond *cond) in profile_path_link() argument
371 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
377 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
384 cond, &lperms); in profile_path_link()
391 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
413 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
436 NULL, cond->uid, info, error); in profile_path_link()
462 struct path_cond cond = { in aa_path_link() local
479 buffer2, &cond)); in aa_path_link()
513 struct path_cond cond = { in __file_path_perm() local
525 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
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()