Lines Matching refs:cond
157 const char **name, struct path_cond *cond, u32 request) in path_name() argument
168 NULL, NULL, cond->uid, info, error)); in path_name()
214 struct path_cond *cond) in aa_compute_fperms() argument
223 if (uid_eq(current_fsuid(), cond->uid)) { in aa_compute_fperms()
256 const char *name, struct path_cond *cond, in aa_str_perms() argument
261 *perms = aa_compute_fperms(dfa, state, cond); in aa_str_perms()
267 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
274 aa_str_perms(profile->file.dfa, profile->file.start, name, cond, perms); in __aa_path_perm()
278 cond->uid, NULL, e); in __aa_path_perm()
284 struct path_cond *cond, int flags, in profile_path_perm() argument
294 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
298 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
315 struct path_cond *cond) in aa_path_perm() argument
322 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
329 cond, flags, &perms)); in aa_path_perm()
359 struct path_cond *cond) in profile_path_link() argument
369 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
375 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
382 cond, &lperms); in profile_path_link()
389 aa_str_perms(profile->file.dfa, state, tname, cond, &perms); in profile_path_link()
411 aa_str_perms(profile->file.dfa, profile->file.start, tname, cond, in profile_path_link()
434 NULL, cond->uid, info, error); in profile_path_link()
460 struct path_cond cond = { in aa_path_link() local
477 buffer2, &cond)); in aa_path_link()
511 struct path_cond cond = { in __file_path_perm() local
523 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
531 request, &cond, flags, &perms)); in __file_path_perm()
544 buffer, request, &cond, flags, in __file_path_perm()
549 buffer, request, &cond, flags, in __file_path_perm()