diff options
Diffstat (limited to 'security/dummy.c')
-rw-r--r-- | security/dummy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/dummy.c b/security/dummy.c index 310fcdf7b749..913540808577 100644 --- a/security/dummy.c +++ b/security/dummy.c | |||
@@ -675,9 +675,9 @@ static int dummy_netlink_send (struct sock *sk, struct sk_buff *skb) | |||
675 | return 0; | 675 | return 0; |
676 | } | 676 | } |
677 | 677 | ||
678 | static int dummy_netlink_recv (struct sk_buff *skb) | 678 | static int dummy_netlink_recv (struct sk_buff *skb, int cap) |
679 | { | 679 | { |
680 | if (!cap_raised (NETLINK_CB (skb).eff_cap, CAP_NET_ADMIN)) | 680 | if (!cap_raised (NETLINK_CB (skb).eff_cap, cap)) |
681 | return -EPERM; | 681 | return -EPERM; |
682 | return 0; | 682 | return 0; |
683 | } | 683 | } |