Lines Matching refs:cond
151 const char **name, struct path_cond *cond, u32 request) in path_name() argument
163 NULL, NULL, cond->uid, info, error)); in path_name()
183 aa_state_t state, struct path_cond *cond) in aa_lookup_condperms() argument
191 if (uid_eq(subj_uid, cond->uid)) in aa_lookup_condperms()
210 const char *name, struct path_cond *cond, in aa_str_perms() argument
216 cond)); in aa_str_perms()
223 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
233 name, cond, perms); in __aa_path_perm()
238 cond->uid, NULL, e); in __aa_path_perm()
245 struct path_cond *cond, int flags, in profile_path_perm() argument
255 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
259 return __aa_path_perm(op, subj_cred, profile, name, request, cond, in profile_path_perm()
278 struct path_cond *cond) in aa_path_perm() argument
285 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
292 request, cond, flags, &perms)); in aa_path_perm()
323 struct path_cond *cond) in profile_path_link() argument
335 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
342 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
350 cond, &lperms); in profile_path_link()
357 aa_str_perms(rules->file, state, tname, cond, &perms); in profile_path_link()
380 tname, cond, &perms); in profile_path_link()
403 NULL, cond->uid, info, error); in profile_path_link()
433 struct path_cond cond = { in aa_path_link() local
450 &target, buffer2, &cond)); in aa_path_link()
487 struct path_cond cond = { in __file_path_perm() local
499 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
508 request, &cond, flags, &perms)); in __file_path_perm()
522 buffer, request, &cond, flags, in __file_path_perm()
528 buffer, request, &cond, flags, in __file_path_perm()