Skip to content

Commit

Permalink
net: Convert selinux_net_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kirill Tkhai authored and David S. Miller committed Feb 27, 2018
1 parent 9532ce1 commit 79a4fb0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79a4fb0

Please sign in to comment.