Commit d6e0e158 authored by David Woodhouse's avatar David Woodhouse

AUDIT: Drop user-generated messages immediately while auditing disabled.

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent df517985
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment