diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-07-04 20:47:05 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-07-04 20:47:05 +0200 |
commit | dd33f253baf68875f99498137f050c756f7427b6 (patch) | |
tree | 2d4bbb30414da84feb6222ef5a0110d01dcf3445 | |
parent | 94a986d88ffdc6868aaf13e6a18cb220434adbef (diff) | |
download | master-187ad058-dd33f253baf68875f99498137f050c756f7427b6.tar.gz master-187ad058-dd33f253baf68875f99498137f050c756f7427b6.tar.bz2 master-187ad058-dd33f253baf68875f99498137f050c756f7427b6.zip |
kernel: require admin permissions for swconfig set operations
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig.c b/target/linux/generic/files/drivers/net/phy/swconfig.c index 699abd33dd..c70ca74cad 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig.c @@ -1025,16 +1025,19 @@ static struct genl_ops swconfig_ops[] = { }, { .cmd = SWITCH_CMD_SET_GLOBAL, + .flags = GENL_ADMIN_PERM, .doit = swconfig_set_attr, .policy = switch_policy, }, { .cmd = SWITCH_CMD_SET_VLAN, + .flags = GENL_ADMIN_PERM, .doit = swconfig_set_attr, .policy = switch_policy, }, { .cmd = SWITCH_CMD_SET_PORT, + .flags = GENL_ADMIN_PERM, .doit = swconfig_set_attr, .policy = switch_policy, }, |