summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs2013-11-26 03:57:51 +0100
committerEric Paris2014-01-14 04:32:31 +0100
commit724e4fcc8d80c63c7e56873b41987533db2a04c2 (patch)
tree2227b9c065ce771308c2f28456b2a9cde559d5af /kernel/audit.c
parentaudit: audit_log_start running on auditd should not stop (diff)
downloadkernel-qcow2-linux-724e4fcc8d80c63c7e56873b41987533db2a04c2.tar.gz
kernel-qcow2-linux-724e4fcc8d80c63c7e56873b41987533db2a04c2.tar.xz
kernel-qcow2-linux-724e4fcc8d80c63c7e56873b41987533db2a04c2.zip
audit: log on errors from filter user rules
An error on an AUDIT_NEVER rule disabled logging on that rule. On error on AUDIT_NEVER rules, log. Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 9c4ec29a707b..15661ef8bece 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -869,7 +869,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
return 0;
err = audit_filter_user(msg_type);
- if (err == 1) {
+ if (err == 1) { /* match or error */
err = 0;
if (msg_type == AUDIT_USER_TTY) {
err = tty_audit_push_current();