X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=security%2Fselinux%2Fnetlink.c;h=b59871d74dad870e72d13ee48f0dab4b3e95bcde;hb=ce4796d1e16cf3761dc2a02b8d588667d05b3078;hp=f49046de63a2d126a90815e53612c7034d2b51d3;hpb=805f53f085346b6765eda02820721a14ce0d644f;p=linux-2.6 diff --git a/security/selinux/netlink.c b/security/selinux/netlink.c index f49046de63..b59871d74d 100644 --- a/security/selinux/netlink.c +++ b/security/selinux/netlink.c @@ -17,6 +17,7 @@ #include #include #include +#include static struct sock *selnl; @@ -104,8 +105,8 @@ void selnl_notify_policyload(u32 seqno) static int __init selnl_init(void) { - selnl = netlink_kernel_create(NETLINK_SELINUX, SELNLGRP_MAX, NULL, NULL, - THIS_MODULE); + selnl = netlink_kernel_create(&init_net, NETLINK_SELINUX, + SELNLGRP_MAX, NULL, NULL, THIS_MODULE); if (selnl == NULL) panic("SELinux: Cannot create netlink socket."); netlink_set_nonroot(NETLINK_SELINUX, NL_NONROOT_RECV);