diff options
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index dbf2ddafd52d..f16444bc6cbb 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -1960,7 +1960,7 @@ static int rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
1960 | sz_idx = type>>2; | 1960 | sz_idx = type>>2; |
1961 | kind = type&3; | 1961 | kind = type&3; |
1962 | 1962 | ||
1963 | if (kind != 2 && security_netlink_recv(skb, CAP_NET_ADMIN)) | 1963 | if (kind != 2 && !capable(CAP_NET_ADMIN)) |
1964 | return -EPERM; | 1964 | return -EPERM; |
1965 | 1965 | ||
1966 | if (kind == 2 && nlh->nlmsg_flags&NLM_F_DUMP) { | 1966 | if (kind == 2 && nlh->nlmsg_flags&NLM_F_DUMP) { |