Skip to contentSkip to conversation

#ifdef ->iptable_security, ->ip6table_security

PATCH Applied Alexey Dobriyan 2 participants 2 messages Jan 16, 2010 – Jan 18, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 #ifdef ->iptable_security, ->ip6table_security

'security' tables depend on SECURITY, so ifdef them.

---

 include/net/netns/ipv4.h |    2 ++
 include/net/netns/ipv6.h |    2 ++
 2 files changed, 4 insertions(+)
include/net/netns/ipv4.h +2 -0
@@ -37,7 +37,9 @@ struct netns_ipv4 {
 	struct xt_table		*iptable_mangle;
 	struct xt_table		*iptable_raw;
 	struct xt_table		*arptable_filter;
+#ifdef CONFIG_SECURITY
 	struct xt_table		*iptable_security;
+#endif
 	struct xt_table		*nat_table;
 	struct hlist_head	*nat_bysource;
 	int			nat_vmalloced;
include/net/netns/ipv6.h +2 -0
@@ -36,8 +36,10 @@ struct netns_ipv6 {
 	struct xt_table		*ip6table_filter;
 	struct xt_table		*ip6table_mangle;
 	struct xt_table		*ip6table_raw;
+#ifdef CONFIG_SECURITY
 	struct xt_table		*ip6table_security;
 #endif
+#endif
 	struct rt6_info         *ip6_null_entry;
 	struct rt6_statistics   *rt6_stats;
 	struct timer_list       ip6_fib_timer;
#1 lore raw
Quoted 1 line · Alexey Dobriyan

'security' tables depend on SECURITY, so ifdef them.

Applied, thanks.