ipv6 netns: Make several "global" sysctl variables namespace aware.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
721499e893
commit
53b7997fd5
@@ -60,7 +60,7 @@ int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr)
|
||||
struct inet6_dev *idev;
|
||||
struct ipv6_ac_socklist *pac;
|
||||
struct net *net = sock_net(sk);
|
||||
int ishost = !ipv6_devconf.forwarding;
|
||||
int ishost = !net->ipv6.devconf_all->forwarding;
|
||||
int err = 0;
|
||||
|
||||
if (!capable(CAP_NET_ADMIN))
|
||||
|
Reference in New Issue
Block a user