projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Allow userns root to control the network bridge code.
[firefly-linux-kernel-4.4.55.git]
/
net
/
bridge
/
br_sysfs_if.c
diff --git
a/net/bridge/br_sysfs_if.c
b/net/bridge/br_sysfs_if.c
index 80a4fc5d96ab7cf409435a0235489c84f4ab8fac..7ff95ba2198203471eec5e96c89092ce2c5509be 100644
(file)
--- a/
net/bridge/br_sysfs_if.c
+++ b/
net/bridge/br_sysfs_if.c
@@
-221,7
+221,7
@@
static ssize_t brport_store(struct kobject * kobj,
char *endp;
unsigned long val;
- if (!
capable(
CAP_NET_ADMIN))
+ if (!
ns_capable(dev_net(p->dev)->user_ns,
CAP_NET_ADMIN))
return -EPERM;
val = simple_strtoul(buf, &endp, 0);