aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2005-11-03 10:48:08 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2006-03-20 14:08:53 -0500
commit90d526c074ae5db484388da56c399acf892b6c17 (patch)
treeedeb7c47d9144f3995846c5fc25db8e49ef12f5d /kernel/audit.c
parentb63862f46547487388e582e8ac9083830d34f058 (diff)
[PATCH] Define new range of userspace messages.
The attached patch updates various items for the new user space messages. Please apply. Signed-off-by: Steve Grubb <sgrubb@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 973ca5a9e0d6..6d61dd79a605 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -369,6 +369,7 @@ static int audit_netlink_ok(kernel_cap_t eff_cap, u16 msg_type)
369 break; 369 break;
370 case AUDIT_USER: 370 case AUDIT_USER:
371 case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: 371 case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
372 case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2:
372 if (!cap_raised(eff_cap, CAP_AUDIT_WRITE)) 373 if (!cap_raised(eff_cap, CAP_AUDIT_WRITE))
373 err = -EPERM; 374 err = -EPERM;
374 break; 375 break;
@@ -449,6 +450,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
449 break; 450 break;
450 case AUDIT_USER: 451 case AUDIT_USER:
451 case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: 452 case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG:
453 case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2:
452 if (!audit_enabled && msg_type != AUDIT_USER_AVC) 454 if (!audit_enabled && msg_type != AUDIT_USER_AVC)
453 return 0; 455 return 0;
454 456