diff options
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 02b1b7875c92..74550ff3644f 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -612,7 +612,7 @@ static int audit_log_common_recv_msg(struct audit_buffer **ab, u16 msg_type) | |||
612 | int rc = 0; | 612 | int rc = 0; |
613 | uid_t uid = from_kuid(&init_user_ns, current_uid()); | 613 | uid_t uid = from_kuid(&init_user_ns, current_uid()); |
614 | 614 | ||
615 | if (!audit_enabled) { | 615 | if (!audit_enabled && msg_type != AUDIT_USER_AVC) { |
616 | *ab = NULL; | 616 | *ab = NULL; |
617 | return rc; | 617 | return rc; |
618 | } | 618 | } |