Lines Matching refs:profile
33 struct aa_profile *profile; member
64 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() argument
67 struct aa_ruleset *rules = list_first_entry(&profile->rules, in audit_caps()
76 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps()
80 } else if (KILL_MODE(profile) || in audit_caps()
84 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps()
85 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps()
92 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps()
94 if (COMPLAIN_MODE(profile)) in audit_caps()
98 aa_put_profile(ent->profile); in audit_caps()
99 ent->profile = aa_get_profile(profile); in audit_caps()
104 return aa_audit(type, profile, ad, audit_cb); in audit_caps()
116 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() argument
119 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_capable()
130 if (!COMPLAIN_MODE(profile)) in profile_capable()
138 return audit_caps(ad, profile, cap, error); in profile_capable()
155 struct aa_profile *profile; in aa_capable() local
161 error = fn_for_each_confined(label, profile, in aa_capable()
162 profile_capable(profile, cap, opts, &ad)); in aa_capable()