summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/usr/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-11-03 17:29:29 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-03 17:56:58 +0100
commitf16a47042c568ccc843897f784f9d748cd630ea2 (patch)
tree9a868e3f0e426605e0e057fac8d042fc3be4c4ac /modules/luci-base/root/usr/share
parent9cb4aa1306a7458b795822509dd152085d7c002e (diff)
luci-base, luci-mod-network: invoke ifdown directly in interface overview
Replace the `iface_down` endpoint with a direct invocation of `/sbin/ifdown` and replace the interface connectivity check with a call to the new `remote_addr` endpoint. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root/usr/share')
-rw-r--r--modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
index ea19f32d49..540fc72c10 100644
--- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
+++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
@@ -63,6 +63,7 @@
"/etc/sysupgrade.conf": [ "write" ],
"/sbin/block": [ "exec" ],
"/sbin/firstboot": [ "exec" ],
+ "/sbin/ifdown": [ "exec" ],
"/sbin/ifup": [ "exec" ],
"/sbin/reboot": [ "exec" ],
"/sbin/sysupgrade": [ "exec" ],