From: David Woodhouse Date: Mon, 20 Jun 2005 15:02:09 +0000 (+0100) Subject: AUDIT: Drop user-generated messages immediately while auditing disabled. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d6e0e1585a1a9a15e48ec47206a809828afe4450;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git AUDIT: Drop user-generated messages immediately while auditing disabled. Signed-off-by: David Woodhouse --- diff --git a/kernel/audit.c b/kernel/audit.c index f0bbfe073136..ab6ac560cfe5 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -437,7 +437,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) if (!tsk) return -ESRCH; - if (audit_filter_user(tsk, msg_type)) { + if (audit_enabled && audit_filter_user(tsk, msg_type)) { ab = audit_log_start(NULL, msg_type); if (ab) { audit_log_format(ab,