|
@@ -988,7 +988,7 @@ ipip6_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
|
case SIOCADDTUNNEL:
|
|
|
case SIOCCHGTUNNEL:
|
|
|
err = -EPERM;
|
|
|
- if (!capable(CAP_NET_ADMIN))
|
|
|
+ if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
|
|
|
goto done;
|
|
|
|
|
|
err = -EFAULT;
|
|
@@ -1032,7 +1032,7 @@ ipip6_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
|
|
|
|
case SIOCDELTUNNEL:
|
|
|
err = -EPERM;
|
|
|
- if (!capable(CAP_NET_ADMIN))
|
|
|
+ if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
|
|
|
goto done;
|
|
|
|
|
|
if (dev == sitn->fb_tunnel_dev) {
|
|
@@ -1065,7 +1065,7 @@ ipip6_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
|
case SIOCDELPRL:
|
|
|
case SIOCCHGPRL:
|
|
|
err = -EPERM;
|
|
|
- if (!capable(CAP_NET_ADMIN))
|
|
|
+ if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
|
|
|
goto done;
|
|
|
err = -EINVAL;
|
|
|
if (dev == sitn->fb_tunnel_dev)
|
|
@@ -1094,7 +1094,7 @@ ipip6_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
|
|
|
case SIOCCHG6RD:
|
|
|
case SIOCDEL6RD:
|
|
|
err = -EPERM;
|
|
|
- if (!capable(CAP_NET_ADMIN))
|
|
|
+ if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
|
|
|
goto done;
|
|
|
|
|
|
err = -EFAULT;
|