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 310fcdf7b74..91354080857 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) return 0; } -static int dummy_netlink_recv (struct sk_buff *skb) +static int dummy_netlink_recv (struct sk_buff *skb, int cap) { - if (!cap_raised (NETLINK_CB (skb).eff_cap, CAP_NET_ADMIN)) + if (!cap_raised (NETLINK_CB (skb).eff_cap, cap)) return -EPERM; return 0; } |