diff options
author | Florian Westphal <fw@strlen.de> | 2018-08-02 22:44:40 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-16 20:37:02 +0300 |
commit | d209df3e7f7002d9099fdb0f6df0f972b4386a63 (patch) | |
tree | b2ded0dc8be12f0048188bbf2b0a80f01fbb353a /net/netfilter/nft_chain_filter.c | |
parent | 3e673b23b541b8e7f773b2d378d6eb99831741cd (diff) | |
download | linux-d209df3e7f7002d9099fdb0f6df0f972b4386a63.tar.xz |
netfilter: nf_tables: fix register ordering
We must register nfnetlink ops last, as that exposes nf_tables to
userspace. Without this, we could theoretically get nfnetlink request
before net->nft state has been initialized.
Fixes: 99633ab29b213 ("netfilter: nf_tables: complete net namespace support")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_chain_filter.c')
-rw-r--r-- | net/netfilter/nft_chain_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nft_chain_filter.c b/net/netfilter/nft_chain_filter.c index ea5b7c4944f6..9d07b277b9ee 100644 --- a/net/netfilter/nft_chain_filter.c +++ b/net/netfilter/nft_chain_filter.c @@ -392,7 +392,7 @@ int __init nft_chain_filter_init(void) return 0; } -void __exit nft_chain_filter_fini(void) +void nft_chain_filter_fini(void) { nft_chain_filter_bridge_fini(); nft_chain_filter_inet_fini(); |