Lines Matching refs:profile
108 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() argument
111 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm()
120 if (profile_unconfined(profile)) in aa_profile_af_perm()
131 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm()
133 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm()
139 struct aa_profile *profile; in aa_af_perm() local
142 return fn_for_each_confined(label, profile, in aa_af_perm()
143 aa_profile_af_perm(profile, &sa, request, family, in aa_af_perm()
157 struct aa_profile *profile; in aa_label_sk_perm() local
160 error = fn_for_each_confined(label, profile, in aa_label_sk_perm()
161 aa_profile_af_sk_perm(profile, &sa, request, sk)); in aa_label_sk_perm()
216 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() argument
221 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_secmark_perm()
246 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm()
248 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_secmark_perm()
254 struct aa_profile *profile; in apparmor_secmark_check() local
257 return fn_for_each_confined(label, profile, in apparmor_secmark_check()
258 aa_secmark_perm(profile, request, secid, in apparmor_secmark_check()