diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-02-13 10:28:24 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-13 16:36:06 +0100 |
commit | 906f63ec1d1b4941d36eee18121e68749c9e3279 (patch) | |
tree | bafddecfef71dc1920bcdfe68828090ee3e8feb6 /kernel | |
parent | net: Convert rtnetlink_net_ops (diff) | |
download | linux-906f63ec1d1b4941d36eee18121e68749c9e3279.tar.xz linux-906f63ec1d1b4941d36eee18121e68749c9e3279.zip |
net: Convert audit_net_ops
This patch starts to convert pernet_subsys, registered
from postcore initcalls.
audit_net_init() creates netlink socket, while audit_net_exit()
destroys it. The rest of the pernet_list are not interested
in the socket, so we make audit_net_ops async.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Acked-by: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/audit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 227db99b0f19..5e49b614d0e6 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1526,6 +1526,7 @@ static struct pernet_operations audit_net_ops __net_initdata = { .exit = audit_net_exit, .id = &audit_net_id, .size = sizeof(struct audit_net), + .async = true, }; /* Initialize audit support at boot time. */ |