netfilter: arp_tables: register table in initns

arptables is broken since we didn't register the table anymore --
even 'arptables -L' fails.

Fixes: b9e69e1273 ("netfilter: xtables: don't hook tables by default")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Florian Westphal 2016-03-29 11:05:16 +02:00 committed by Pablo Neira Ayuso
parent 0a1a37b6d6
commit ff76def3bd

View File

@ -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;
}