diff options
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/netlink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c index 20f481015db4..e203883406dd 100644 --- a/security/selinux/netlink.c +++ b/security/selinux/netlink.c | |||
@@ -104,7 +104,8 @@ void selnl_notify_policyload(u32 seqno) | |||
104 | 104 | ||
105 | static int __init selnl_init(void) | 105 | static int __init selnl_init(void) |
106 | { | 106 | { |
107 | selnl = netlink_kernel_create(NETLINK_SELINUX, NULL, THIS_MODULE); | 107 | selnl = netlink_kernel_create(NETLINK_SELINUX, SELNLGRP_MAX, NULL, |
108 | THIS_MODULE); | ||
108 | if (selnl == NULL) | 109 | if (selnl == NULL) |
109 | panic("SELinux: Cannot create netlink socket."); | 110 | panic("SELinux: Cannot create netlink socket."); |
110 | netlink_set_nonroot(NETLINK_SELINUX, NL_NONROOT_RECV); | 111 | netlink_set_nonroot(NETLINK_SELINUX, NL_NONROOT_RECV); |