summaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
authorKirill Tkhai <ktkhai@virtuozzo.com>2018-02-26 14:03:55 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-27 17:01:39 +0100
commit79a4fb084326638b5e71e58e2207abffdf3ec031 (patch)
tree4dfb7170eb7f5034acb694dede97906e958f3079 /security/selinux
parentnet: Convert defrag6_net_ops (diff)
downloadlinux-79a4fb084326638b5e71e58e2207abffdf3ec031.tar.xz
linux-79a4fb084326638b5e71e58e2207abffdf3ec031.zip
net: Convert selinux_net_ops
These pernet_operations only register and unregister nf hooks. So, they are able to be marked as async. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 8644d864e3c1..b4d7b6242a40 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -6743,6 +6743,7 @@ static void __net_exit selinux_nf_unregister(struct net *net)
static struct pernet_operations selinux_net_ops = {
.init = selinux_nf_register,
.exit = selinux_nf_unregister,
+ .async = true,
};
static int __init selinux_nf_ip_init(void)