diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-20 16:02:09 +0100 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-06-20 16:02:09 +0100 |
commit | d6e0e1585a1a9a15e48ec47206a809828afe4450 (patch) | |
tree | 67f444b480566fe0272c0543dea9e54cb1cbde12 /kernel/audit.c | |
parent | df5179854bca84ac5be500849b12dd33ce03f03f (diff) |
AUDIT: Drop user-generated messages immediately while auditing disabled.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-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 f0bbfe07313..ab6ac560cfe 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, |