aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
Diffstat (limited to 'security')
-rw-r--r--security/selinux/netlink.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c
index 0d2cd11f3c22..14d810ead420 100644
--- a/security/selinux/netlink.c
+++ b/security/selinux/netlink.c
@@ -116,8 +116,7 @@ static int __init selnl_init(void)
116 .flags = NL_CFG_F_NONROOT_RECV, 116 .flags = NL_CFG_F_NONROOT_RECV,
117 }; 117 };
118 118
119 selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, 119 selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, &cfg);
120 THIS_MODULE, &cfg);
121 if (selnl == NULL) 120 if (selnl == NULL)
122 panic("SELinux: Cannot create netlink socket."); 121 panic("SELinux: Cannot create netlink socket.");
123 return 0; 122 return 0;