summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2013-04-16 19:08:43 +0200
committerEric Paris <eparis@redhat.com>2013-04-16 23:28:49 +0200
commit62062cf8a3a99a933efdac549da380f230dbe982 (patch)
tree8da676d774d02c3c8f0093e7f2586719072f522f /kernel/audit.c
parentaudit: fix build break when AUDIT_DEBUG == 2 (diff)
downloadlinux-62062cf8a3a99a933efdac549da380f230dbe982.tar.xz
linux-62062cf8a3a99a933efdac549da380f230dbe982.zip
audit: allow checking the type of audit message in the user filter
When userspace sends messages to the audit system it includes a type. We want to be able to filter messages based on that type without have to do the all or nothing option currently available on the AUDIT_FILTER_TYPE filter list. Instead we should be able to use the AUDIT_FILTER_USER filter list and just use the message type as one part of the matching decision. 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 c45e6d2809d7..132271448b89 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -737,7 +737,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if (!audit_enabled && msg_type != AUDIT_USER_AVC)
return 0;
- err = audit_filter_user();
+ err = audit_filter_user(msg_type);
if (err == 1) {
err = 0;
if (msg_type == AUDIT_USER_TTY) {