aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge/br_sysfs_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/bridge/br_sysfs_if.c')
-rw-r--r--net/bridge/br_sysfs_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c
index 80a4fc5d96ab..7ff95ba21982 100644
--- 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,
221 char *endp; 221 char *endp;
222 unsigned long val; 222 unsigned long val;
223 223
224 if (!capable(CAP_NET_ADMIN)) 224 if (!ns_capable(dev_net(p->dev)->user_ns, CAP_NET_ADMIN))
225 return -EPERM; 225 return -EPERM;
226 226
227 val = simple_strtoul(buf, &endp, 0); 227 val = simple_strtoul(buf, &endp, 0);