aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
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