netfilter: arp_tables: register table in initns
Subsystems (2)
Florian Westphal
maintainerPATCH 1/1 netfilter: arp_tables: register table in initns
arptables is broken since we didn't register the table anymore -- even 'arptables -L' fails.
Fixes b9e69e127397187b ("netfilter: xtables: don't hook tables by default")
Signed-off-by Florian Westphal <[email protected]>
---
Broken commit is in v4.6-rc1, 4.5 isn't affected.
net/ipv4/netfilter/arptable_filter.c +6 -0
@@ -81,6 +81,12 @@ static int __init arptable_filter_init(void)return ret; } + ret =arptable_filter_table_init (&init_net); +if (ret) { +unregister_pernet_subsys (&arptable_filter_net_ops); +kfree (arpfilter_ops); + } +return ret; }
Signature · 1 line
2.4.10
Quoted 2 lines · Florian Westphal
arptables is broken since we didn't register the table anymore -- even 'arptables -L' fails.
Applied, thanks Florian.