Lines Matching refs:profile
95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument
116 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file()
135 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file()
136 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file()
144 return aa_audit(type, profile, &ad, file_audit_cb); in aa_audit_file()
152 struct aa_profile *profile; in path_name() local
159 fn_for_each_confined(label, profile, in path_name()
161 profile, &nullperms, op, request, *name, in path_name()
216 struct aa_profile *profile, const char *name, in __aa_path_perm() argument
220 struct aa_ruleset *rules = list_first_entry(&profile->rules, in __aa_path_perm()
224 if (profile_unconfined(profile)) in __aa_path_perm()
231 profile, perms, op, request, name, NULL, NULL, in __aa_path_perm()
237 struct aa_profile *profile, in profile_path_perm() argument
245 if (profile_unconfined(profile)) in profile_path_perm()
248 error = path_name(op, subj_cred, &profile->label, path, in profile_path_perm()
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()
275 struct aa_profile *profile; in aa_path_perm() local
284 error = fn_for_each_confined(label, profile, in aa_path_perm()
285 profile_path_perm(op, subj_cred, profile, path, buffer, in aa_path_perm()
314 struct aa_profile *profile, in profile_path_link() argument
319 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_path_link()
328 error = path_name(OP_LINK, subj_cred, &profile->label, link, in profile_path_link()
329 profile->path_flags, in profile_path_link()
335 error = path_name(OP_LINK, subj_cred, &profile->label, target, in profile_path_link()
336 profile->path_flags, in profile_path_link()
397 profile, &lperms, OP_LINK, request, lname, tname, in profile_path_link()
431 struct aa_profile *profile; in aa_path_link() local
441 error = fn_for_each_confined(label, profile, in aa_path_link()
442 profile_path_link(subj_cred, profile, &link, buffer, in aa_path_link()
476 struct aa_profile *profile; in __file_path_perm() local
498 error = fn_for_each_not_in_set(flabel, label, profile, in __file_path_perm()
499 profile_path_perm(op, subj_cred, profile, in __file_path_perm()
512 error = fn_for_each(label, profile, in __file_path_perm()
514 profile, &file->f_path, in __file_path_perm()
518 error = fn_for_each_not_in_set(label, flabel, profile, in __file_path_perm()
520 profile, &file->f_path, in __file_path_perm()