Skip to contentSkip to conversation

netfilter: arp_tables: register table in initns

PATCH Applied Florian Westphal 2 participants 2 messages Mar 29, 2016 – Apr 7, 2016

Subsystems (2)
lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 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")

---
Broken commit is in v4.6-rc1, 4.5 isn't affected.

net/ipv4/netfilter/arptable_filter.c +6 -0
index dd8c80d..8f8713b 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 2 lines · Florian Westphal

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

Applied, thanks Florian.