diff options
Diffstat (limited to 'net/dcb/dcbnl.c')
-rw-r--r-- | net/dcb/dcbnl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 70989e672304..b07c75d37e91 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -1662,6 +1662,9 @@ static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | |||
1662 | struct nlmsghdr *reply_nlh = NULL; | 1662 | struct nlmsghdr *reply_nlh = NULL; |
1663 | const struct reply_func *fn; | 1663 | const struct reply_func *fn; |
1664 | 1664 | ||
1665 | if ((nlh->nlmsg_type == RTM_SETDCB) && !capable(CAP_NET_ADMIN)) | ||
1666 | return -EPERM; | ||
1667 | |||
1665 | if (!net_eq(net, &init_net)) | 1668 | if (!net_eq(net, &init_net)) |
1666 | return -EINVAL; | 1669 | return -EINVAL; |
1667 | 1670 | ||