Lines Matching defs:profile
167 int aa_do_perms(struct aa_profile *profile, struct aa_policydb *policy,
173 AA_BUG(!profile);
180 aa_apply_modes_to_perms(profile, &perms);
181 return aa_check_perms(profile, &perms, request, ad,
252 int aa_profile_af_perm(struct aa_profile *profile,
256 struct aa_ruleset *rules = profile->label.rules[0];
262 AA_BUG(profile_unconfined(profile));
264 if (profile_unconfined(profile))
271 return aa_do_perms(profile, rules->policy, state, request, p, ad);
277 struct aa_profile *profile;
280 return fn_for_each_confined(label, profile,
281 aa_profile_af_perm(profile, &ad, request, family,
297 struct aa_profile *profile;
301 error = fn_for_each_confined(label, profile,
302 aa_profile_af_sk_perm(profile, &ad, request, sk));
364 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid,
369 struct aa_ruleset *rules = profile->label.rules[0];
393 aa_apply_modes_to_perms(profile, &perms);
395 return aa_check_perms(profile, &perms, request, ad, audit_net_cb);
401 struct aa_profile *profile;
404 return fn_for_each_confined(label, profile,
405 aa_secmark_perm(profile, request, secid,