Lines Matching refs:profile
96 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
117 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
136 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
137 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
145 return aa_audit(type, profile, &ad, file_audit_cb); in aa_audit_file()
153 struct aa_profile *profile; in path_name() local
160 fn_for_each_confined(label, profile, in path_name()
162 profile, &nullperms, op, request, *name, in path_name()
222 struct aa_profile *profile, const char *name, in __aa_path_perm() argument
226 struct aa_ruleset *rules = profile->label.rules[0]; in __aa_path_perm()
229 if (profile_unconfined(profile) || in __aa_path_perm()
237 profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
243 struct aa_profile *profile, in profile_path_perm() argument
251 if (profile_unconfined(profile)) in profile_path_perm()
254 error = path_name(op, subj_cred, &profile->label, path, in profile_path_perm()
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()
281 struct aa_profile *profile; in aa_path_perm() local
290 error = fn_for_each_confined(label, profile, in aa_path_perm()
291 profile_path_perm(op, subj_cred, profile, path, buffer, in aa_path_perm()
320 struct aa_profile *profile, in profile_path_link() argument
325 struct aa_ruleset *rules = profile->label.rules[0]; in profile_path_link()
333 error = path_name(OP_LINK, subj_cred, &profile->label, link, in profile_path_link()
334 profile->path_flags, in profile_path_link()
340 error = path_name(OP_LINK, subj_cred, &profile->label, target, in profile_path_link()
341 profile->path_flags, in profile_path_link()
402 profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
438 struct aa_profile *profile; in aa_path_link() local
448 error = fn_for_each_confined(label, profile, in aa_path_link()
449 profile_path_link(subj_cred, profile, &link, buffer, in aa_path_link()
483 struct aa_profile *profile; in __file_path_perm() local
505 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
506 profile_path_perm(op, subj_cred, profile, in __file_path_perm()
519 error = fn_for_each(label, profile, in __file_path_perm()
521 profile, &file->f_path, in __file_path_perm()
525 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
527 profile, &file->f_path, in __file_path_perm()