Lines Matching full:profile
78 struct aa_profile *profile = labels_profile(label); in audit_pre() local
80 if (profile->ns != root_ns) { in audit_pre()
83 profile->ns->base.hname); in audit_pre()
85 audit_log_format(ab, " profile="); in audit_pre()
86 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre()
113 * aa_audit - Log a profile based audit event to the audit subsystem
115 * @profile: profile to check against (NOT NULL)
123 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit() argument
126 AA_BUG(!profile); in aa_audit()
130 if (AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit()
133 } else if (COMPLAIN_MODE(profile)) in aa_audit()
138 if (AUDIT_MODE(profile) == AUDIT_QUIET || in aa_audit()
140 AUDIT_MODE(profile) == AUDIT_QUIET_DENIED)) in aa_audit()
143 if (KILL_MODE(profile) && type == AUDIT_APPARMOR_DENIED) in aa_audit()
146 aad(sa)->label = &profile->label; in aa_audit()