diff options
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 421f98444335..eb872b2e366e 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -2349,7 +2349,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
2349 | link = &xfrm_dispatch[type]; | 2349 | link = &xfrm_dispatch[type]; |
2350 | 2350 | ||
2351 | /* All operations require privileges, even GET */ | 2351 | /* All operations require privileges, even GET */ |
2352 | if (!capable(CAP_NET_ADMIN)) | 2352 | if (!ns_capable(net->user_ns, CAP_NET_ADMIN)) |
2353 | return -EPERM; | 2353 | return -EPERM; |
2354 | 2354 | ||
2355 | if ((type == (XFRM_MSG_GETSA - XFRM_MSG_BASE) || | 2355 | if ((type == (XFRM_MSG_GETSA - XFRM_MSG_BASE) || |