Lines Matching refs:cond
172 const char **name, struct path_cond *cond, u32 request) in path_name() argument
183 NULL, NULL, cond->uid, info, error)); in path_name()
229 struct path_cond *cond) in aa_compute_fperms() argument
238 if (uid_eq(current_fsuid(), cond->uid)) { in aa_compute_fperms()
271 const char *name, struct path_cond *cond, in aa_str_perms() argument
276 *perms = aa_compute_fperms(dfa, state, cond); in aa_str_perms()
282 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
289 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
293 cond->uid, NULL, e); in __aa_path_perm()
299 struct path_cond *cond, int flags, in profile_path_perm() argument
309 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
313 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
330 struct path_cond *cond) in aa_path_perm() argument
337 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
342 cond, flags, &perms)); in aa_path_perm()
372 struct path_cond *cond) in profile_path_link() argument
382 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
388 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
395 cond, &lperms); in profile_path_link()
402 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
424 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
447 NULL, cond->uid, info, error); in profile_path_link()
473 struct path_cond cond = { in aa_path_link() local
485 buffer2, &cond)); in aa_path_link()
518 struct path_cond cond = { in __file_path_perm() local
530 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
536 request, &cond, flags, &perms)); in __file_path_perm()
549 buffer, request, &cond, flags, in __file_path_perm()
554 buffer, request, &cond, flags, in __file_path_perm()