diff options
Diffstat (limited to 'kernel/audit.c')
| -rw-r--r-- | kernel/audit.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 7c2893602d06..f30106459a32 100644 --- a/kernel/audit.c +++ b/kernel/audit.c  | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 44 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 
| 45 | 45 | ||
| 46 | #include <linux/init.h> | 46 | #include <linux/init.h> | 
| 47 | #include <asm/types.h> | 47 | #include <linux/types.h> | 
| 48 | #include <linux/atomic.h> | 48 | #include <linux/atomic.h> | 
| 49 | #include <linux/mm.h> | 49 | #include <linux/mm.h> | 
| 50 | #include <linux/export.h> | 50 | #include <linux/export.h> | 
| @@ -643,13 +643,13 @@ static int audit_netlink_ok(struct sk_buff *skb, u16 msg_type) | |||
| 643 | if ((task_active_pid_ns(current) != &init_pid_ns)) | 643 | if ((task_active_pid_ns(current) != &init_pid_ns)) | 
| 644 | return -EPERM; | 644 | return -EPERM; | 
| 645 | 645 | ||
| 646 | if (!capable(CAP_AUDIT_CONTROL)) | 646 | if (!netlink_capable(skb, CAP_AUDIT_CONTROL)) | 
| 647 | err = -EPERM; | 647 | err = -EPERM; | 
| 648 | break; | 648 | break; | 
| 649 | case AUDIT_USER: | 649 | case AUDIT_USER: | 
| 650 | case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: | 650 | case AUDIT_FIRST_USER_MSG ... AUDIT_LAST_USER_MSG: | 
| 651 | case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: | 651 | case AUDIT_FIRST_USER_MSG2 ... AUDIT_LAST_USER_MSG2: | 
| 652 | if (!capable(CAP_AUDIT_WRITE)) | 652 | if (!netlink_capable(skb, CAP_AUDIT_WRITE)) | 
| 653 | err = -EPERM; | 653 | err = -EPERM; | 
| 654 | break; | 654 | break; | 
| 655 | default: /* bad msg */ | 655 | default: /* bad msg */ | 
