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