Lines Matching refs:profile
109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument
113 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm()
122 if (profile_unconfined(profile)) in aa_profile_af_perm()
133 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm()
135 return aa_check_perms(profile, &perms, request, ad, audit_net_cb); in aa_profile_af_perm()
141 struct aa_profile *profile; in aa_af_perm() local
144 return fn_for_each_confined(label, profile, in aa_af_perm()
145 aa_profile_af_perm(profile, &ad, request, family, in aa_af_perm()
161 struct aa_profile *profile; in aa_label_sk_perm() local
165 error = fn_for_each_confined(label, profile, in aa_label_sk_perm()
166 aa_profile_af_sk_perm(profile, &ad, request, sk)); in aa_label_sk_perm()
221 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() argument
226 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_secmark_perm()
251 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm()
253 return aa_check_perms(profile, &perms, request, ad, audit_net_cb); in aa_secmark_perm()
259 struct aa_profile *profile; in apparmor_secmark_check() local
262 return fn_for_each_confined(label, profile, in apparmor_secmark_check()
263 aa_secmark_perm(profile, request, secid, in apparmor_secmark_check()