aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/netlink.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2005-08-15 15:33:26 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-08-29 19:01:11 -0400
commit066286071d3542243baa68166acb779187c848b3 (patch)
treeef6604f16ceb13842a30311654e6a64aac716c48 /security/selinux/netlink.c
parent9a4595bc7e67962f13232ee55a64e063062c3a99 (diff)
[NETLINK]: Add "groups" argument to netlink_kernel_create
Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/selinux/netlink.c')
-rw-r--r--security/selinux/netlink.c3
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
105static int __init selnl_init(void) 105static 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);