diff options
Diffstat (limited to 'crypto/crypto_user.c')
-rw-r--r-- | crypto/crypto_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index 3ba6ef508869..16f8693cc147 100644 --- a/crypto/crypto_user.c +++ b/crypto/crypto_user.c | |||
@@ -382,7 +382,7 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
382 | type -= CRYPTO_MSG_BASE; | 382 | type -= CRYPTO_MSG_BASE; |
383 | link = &crypto_dispatch[type]; | 383 | link = &crypto_dispatch[type]; |
384 | 384 | ||
385 | if (security_netlink_recv(skb, CAP_NET_ADMIN)) | 385 | if (!capable(CAP_NET_ADMIN)) |
386 | return -EPERM; | 386 | return -EPERM; |
387 | 387 | ||
388 | if ((type == (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE) && | 388 | if ((type == (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE) && |