projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'acpi-pm' into pm-sleep
[firefly-linux-kernel-4.4.55.git]
/
crypto
/
crypto_user.c
diff --git
a/crypto/crypto_user.c
b/crypto/crypto_user.c
index 1512e41cd93d74a4e7ab3fde6809e64468f797a8..43665d0d0905ddddf018fe68655c1ff7685b0b9e 100644
(file)
--- a/
crypto/crypto_user.c
+++ b/
crypto/crypto_user.c
@@
-466,7
+466,7
@@
static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
type -= CRYPTO_MSG_BASE;
link = &crypto_dispatch[type];
- if (!
capable(
CAP_NET_ADMIN))
+ if (!
netlink_capable(skb,
CAP_NET_ADMIN))
return -EPERM;
if ((type == (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE) &&