Skip to content

Commit

Permalink
AUDIT: Drop user-generated messages immediately while auditing disabled.
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed Jun 20, 2005
1 parent df51798 commit d6e0e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/audit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d6e0e15

Please sign in to comment.