diff options
-rw-r--r-- | kernel/audit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 4e9d20829681..d13276d41410 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -515,8 +515,8 @@ static int audit_netlink_ok(struct sk_buff *skb, u16 msg_type) | |||
515 | err = -EPERM; | 515 | err = -EPERM; |
516 | break; | 516 | break; |
517 | case AUDIT_USER: | 517 | case AUDIT_USER: |
518 | case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: | 518 | case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: |
519 | case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2: | 519 | case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: |
520 | if (security_netlink_recv(skb, CAP_AUDIT_WRITE)) | 520 | if (security_netlink_recv(skb, CAP_AUDIT_WRITE)) |
521 | err = -EPERM; | 521 | err = -EPERM; |
522 | break; | 522 | break; |
@@ -614,8 +614,8 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
614 | loginuid, sid); | 614 | loginuid, sid); |
615 | break; | 615 | break; |
616 | case AUDIT_USER: | 616 | case AUDIT_USER: |
617 | case AUDIT_FIRST_USER_MSG...AUDIT_LAST_USER_MSG: | 617 | case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: |
618 | case AUDIT_FIRST_USER_MSG2...AUDIT_LAST_USER_MSG2: | 618 | case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: |
619 | if (!audit_enabled && msg_type != AUDIT_USER_AVC) | 619 | if (!audit_enabled && msg_type != AUDIT_USER_AVC) |
620 | return 0; | 620 | return 0; |
621 | 621 | ||