Lines Matching refs:cond
150 const char **name, struct path_cond *cond, u32 request) in path_name() argument
162 NULL, NULL, cond->uid, info, error)); in path_name()
181 aa_state_t state, struct path_cond *cond) in aa_lookup_fperms() argument
188 if (uid_eq(current_fsuid(), cond->uid)) in aa_lookup_fperms()
205 const char *name, struct path_cond *cond, in aa_str_perms() argument
210 *perms = *(aa_lookup_fperms(file_rules, state, cond)); in aa_str_perms()
217 u32 request, struct path_cond *cond, int flags, in __aa_path_perm() argument
227 name, cond, perms); in __aa_path_perm()
232 cond->uid, NULL, e); in __aa_path_perm()
239 struct path_cond *cond, int flags, in profile_path_perm() argument
249 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
253 return __aa_path_perm(op, subj_cred, profile, name, request, cond, in profile_path_perm()
272 struct path_cond *cond) in aa_path_perm() argument
279 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
286 request, cond, flags, &perms)); in aa_path_perm()
317 struct path_cond *cond) in profile_path_link() argument
330 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
337 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
345 cond, &lperms); in profile_path_link()
352 aa_str_perms(rules->file, state, tname, cond, &perms); in profile_path_link()
375 tname, cond, &perms); in profile_path_link()
398 NULL, cond->uid, info, error); in profile_path_link()
426 struct path_cond cond = { in aa_path_link() local
443 &target, buffer2, &cond)); in aa_path_link()
480 struct path_cond cond = { in __file_path_perm() local
492 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
501 request, &cond, flags, &perms)); in __file_path_perm()
515 buffer, request, &cond, flags, in __file_path_perm()
521 buffer, request, &cond, flags, in __file_path_perm()