Lines Matching defs:profile
132 if (sa->aad->profile) {
133 struct aa_profile *profile = sa->aad->profile;
134 if (profile->ns != root_ns) {
136 audit_log_untrustedstring(ab, profile->ns->base.hname);
138 audit_log_format(ab, " profile=");
139 audit_log_untrustedstring(ab, profile->base.hname);
161 * aa_audit - Log a profile based audit event to the audit subsystem
163 * @profile: profile to check against (NOT NULL)
172 int aa_audit(int type, struct aa_profile *profile, gfp_t gfp,
176 BUG_ON(!profile);
180 if (AUDIT_MODE(profile) != AUDIT_ALL)
183 } else if (COMPLAIN_MODE(profile))
188 if (AUDIT_MODE(profile) == AUDIT_QUIET ||
190 AUDIT_MODE(profile) == AUDIT_QUIET))
193 if (KILL_MODE(profile) && type == AUDIT_APPARMOR_DENIED)
196 if (!unconfined(profile))
197 sa->aad->profile = profile;