netfilter: iptables: Add a .pre_exit hook in all iptable_foo.c.
authorDavid Wilder <dwilder@us.ibm.com>
Mon, 22 Jun 2020 17:10:12 +0000 (10:10 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 24 Jun 2020 22:50:31 +0000 (00:50 +0200)
commitcf4cbc610bfa29a88cd71ca638a890f8c565a22e
tree907d25be1845827ba84e8d4a9e9176e5be13dc13
parent1cbf90985f7448f1b0dd630e17ee1070f7d58665
netfilter: iptables: Add a .pre_exit hook in all iptable_foo.c.

Using new helpers ipt_unregister_table_pre_exit() and
ipt_unregister_table_exit().

Fixes: b9e69e127397 ("netfilter: xtables: don't hook tables by default")
Signed-off-by: David Wilder <dwilder@us.ibm.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv4/netfilter/iptable_filter.c
net/ipv4/netfilter/iptable_mangle.c
net/ipv4/netfilter/iptable_nat.c
net/ipv4/netfilter/iptable_raw.c
net/ipv4/netfilter/iptable_security.c