diff options
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r-- | net/bridge/br_netlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 65429b99a2a3..49e14937019d 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
@@ -240,6 +240,9 @@ int br_setlink(struct net_device *dev, struct nlmsghdr *nlh) | |||
240 | struct nlattr *tb[IFLA_BRPORT_MAX]; | 240 | struct nlattr *tb[IFLA_BRPORT_MAX]; |
241 | int err; | 241 | int err; |
242 | 242 | ||
243 | if (!capable(CAP_NET_ADMIN)) | ||
244 | return -EPERM; | ||
245 | |||
243 | ifm = nlmsg_data(nlh); | 246 | ifm = nlmsg_data(nlh); |
244 | 247 | ||
245 | protinfo = nlmsg_find_attr(nlh, sizeof(*ifm), IFLA_PROTINFO); | 248 | protinfo = nlmsg_find_attr(nlh, sizeof(*ifm), IFLA_PROTINFO); |