Lines Matching refs:cond
146 const char **name, struct path_cond *cond, u32 request) in path_name() argument
157 NULL, NULL, cond->uid, info, error)); in path_name()
176 aa_state_t state, struct path_cond *cond) in aa_lookup_fperms() argument
183 if (uid_eq(current_fsuid(), cond->uid)) in aa_lookup_fperms()
200 const char *name, struct path_cond *cond, in aa_str_perms() argument
205 *perms = *(aa_lookup_fperms(file_rules, state, cond)); in aa_str_perms()
212 struct path_cond *cond, int flags, in __aa_path_perm() argument
222 name, cond, perms); in __aa_path_perm()
226 cond->uid, NULL, e); in __aa_path_perm()
232 struct path_cond *cond, int flags, in profile_path_perm() argument
242 flags | profile->path_flags, buffer, &name, cond, in profile_path_perm()
246 return __aa_path_perm(op, profile, name, request, cond, flags, in profile_path_perm()
263 struct path_cond *cond) in aa_path_perm() argument
270 flags |= PATH_DELEGATE_DELETED | (S_ISDIR(cond->mode) ? PATH_IS_DIR : in aa_path_perm()
277 cond, flags, &perms)); in aa_path_perm()
307 struct path_cond *cond) in profile_path_link() argument
319 buffer, &lname, cond, AA_MAY_LINK); in profile_path_link()
325 buffer2, &tname, cond, AA_MAY_LINK); in profile_path_link()
333 cond, &lperms); in profile_path_link()
340 aa_str_perms(&(rules->file), state, tname, cond, &perms); in profile_path_link()
363 tname, cond, &perms); in profile_path_link()
385 NULL, cond->uid, info, error); in profile_path_link()
411 struct path_cond cond = { in aa_path_link() local
428 buffer2, &cond)); in aa_path_link()
464 struct path_cond cond = { in __file_path_perm() local
476 flags = PATH_DELEGATE_DELETED | (S_ISDIR(cond.mode) ? PATH_IS_DIR : 0); in __file_path_perm()
484 request, &cond, flags, &perms)); in __file_path_perm()
497 buffer, request, &cond, flags, in __file_path_perm()
502 buffer, request, &cond, flags, in __file_path_perm()