diff options
Diffstat (limited to 'net/ipv6/af_inet6.c')
-rw-r--r-- | net/ipv6/af_inet6.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 7bafc51cda11..4b29f6b52c11 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
@@ -160,7 +160,8 @@ lookup_protocol: | |||
160 | } | 160 | } |
161 | 161 | ||
162 | err = -EPERM; | 162 | err = -EPERM; |
163 | if (sock->type == SOCK_RAW && !kern && !capable(CAP_NET_RAW)) | 163 | if (sock->type == SOCK_RAW && !kern && |
164 | !ns_capable(net->user_ns, CAP_NET_RAW)) | ||
164 | goto out_rcu_unlock; | 165 | goto out_rcu_unlock; |
165 | 166 | ||
166 | sock->ops = answer->ops; | 167 | sock->ops = answer->ops; |