[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>
This commit is contained in:

committed by
David S. Miller

parent
9a4595bc7e
commit
066286071d
@@ -104,7 +104,8 @@ void selnl_notify_policyload(u32 seqno)
|
||||
|
||||
static int __init selnl_init(void)
|
||||
{
|
||||
selnl = netlink_kernel_create(NETLINK_SELINUX, NULL, THIS_MODULE);
|
||||
selnl = netlink_kernel_create(NETLINK_SELINUX, SELNLGRP_MAX, NULL,
|
||||
THIS_MODULE);
|
||||
if (selnl == NULL)
|
||||
panic("SELinux: Cannot create netlink socket.");
|
||||
netlink_set_nonroot(NETLINK_SELINUX, NL_NONROOT_RECV);
|
||||
|
Reference in New Issue
Block a user