forked from Minki/linux
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:
parent
0a1a37b6d6
commit
ff76def3bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user