diff options
Diffstat (limited to 'security/selinux/netlink.c')
-rw-r--r-- | security/selinux/netlink.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c index 8a77725423e0..14d810ead420 100644 --- a/security/selinux/netlink.c +++ b/security/selinux/netlink.c | |||
@@ -113,13 +113,12 @@ static int __init selnl_init(void) | |||
113 | { | 113 | { |
114 | struct netlink_kernel_cfg cfg = { | 114 | struct netlink_kernel_cfg cfg = { |
115 | .groups = SELNLGRP_MAX, | 115 | .groups = SELNLGRP_MAX, |
116 | .flags = NL_CFG_F_NONROOT_RECV, | ||
116 | }; | 117 | }; |
117 | 118 | ||
118 | selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, | 119 | selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, &cfg); |
119 | THIS_MODULE, &cfg); | ||
120 | if (selnl == NULL) | 120 | if (selnl == NULL) |
121 | panic("SELinux: Cannot create netlink socket."); | 121 | panic("SELinux: Cannot create netlink socket."); |
122 | netlink_set_nonroot(NETLINK_SELINUX, NL_NONROOT_RECV); | ||
123 | return 0; | 122 | return 0; |
124 | } | 123 | } |
125 | 124 | ||