mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
9532ce17f7
commit
79a4fb0843
1 changed files with 1 additions and 0 deletions
|
@ -6743,6 +6743,7 @@ static void __net_exit selinux_nf_unregister(struct net *net)
|
||||||
static struct pernet_operations selinux_net_ops = {
|
static struct pernet_operations selinux_net_ops = {
|
||||||
.init = selinux_nf_register,
|
.init = selinux_nf_register,
|
||||||
.exit = selinux_nf_unregister,
|
.exit = selinux_nf_unregister,
|
||||||
|
.async = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init selinux_nf_ip_init(void)
|
static int __init selinux_nf_ip_init(void)
|
||||||
|
|
Loading…
Reference in a new issue