summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root
diff options
context:
space:
mode:
authorChen Minqiang <ptpt52@gmail.com>2019-09-25 09:02:59 +0800
committerChen Minqiang <ptpt52@gmail.com>2019-10-07 23:37:35 +0800
commit29aad47121e8c69552ffbc1455443c69ee4c7497 (patch)
tree37131052440831d58fc4a39ab789c3d38c668b93 /modules/luci-base/root
parent90c52a1782ae7727c0a430dcec64d9c1b072e452 (diff)
luci-mod-system: refine flash reset
We determine flash reset capability by checking overlayfs in /proc/mounts Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
Diffstat (limited to 'modules/luci-base/root')
-rw-r--r--modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json2
1 files changed, 1 insertions, 1 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 001e6deec8..bd260863d7 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
@@ -34,7 +34,7 @@
"/proc/mtd": [ "read" ],
"/proc/partitions": [ "read" ],
"/proc/sys/kernel/hostname": [ "read" ],
- "/sys/devices/virtual/ubi/*/name": [ "read" ]
+ "/proc/mounts": [ "read" ]
},
"ubus": {
"file": [ "list", "read", "stat" ],