Commit d2789312 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller

netfilter: use correct namespace in ip6table_security

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@parallels.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6ba33ac8
...@@ -72,7 +72,7 @@ ip6t_local_in_hook(unsigned int hook, ...@@ -72,7 +72,7 @@ ip6t_local_in_hook(unsigned int hook,
int (*okfn)(struct sk_buff *)) int (*okfn)(struct sk_buff *))
{ {
return ip6t_do_table(skb, hook, in, out, return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security); nf_local_in_net(in, out)->ipv6.ip6table_security);
} }
static unsigned int static unsigned int
...@@ -83,7 +83,7 @@ ip6t_forward_hook(unsigned int hook, ...@@ -83,7 +83,7 @@ ip6t_forward_hook(unsigned int hook,
int (*okfn)(struct sk_buff *)) int (*okfn)(struct sk_buff *))
{ {
return ip6t_do_table(skb, hook, in, out, return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security); nf_forward_net(in, out)->ipv6.ip6table_security);
} }
static unsigned int static unsigned int
...@@ -95,7 +95,7 @@ ip6t_local_out_hook(unsigned int hook, ...@@ -95,7 +95,7 @@ ip6t_local_out_hook(unsigned int hook,
{ {
/* TBD: handle short packets via raw socket */ /* TBD: handle short packets via raw socket */
return ip6t_do_table(skb, hook, in, out, return ip6t_do_table(skb, hook, in, out,
init_net.ipv6.ip6table_security); nf_local_out_net(in, out)->ipv6.ip6table_security);
} }
static struct nf_hook_ops ip6t_ops[] __read_mostly = { static struct nf_hook_ops ip6t_ops[] __read_mostly = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment