summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-statistics/root/usr/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-13 19:33:05 +0100
committerJo-Philipp Wich <jo@mein.io>2020-02-13 19:37:26 +0100
commit1d47f0c1a913ccbcba86061daa20e1e336d7b559 (patch)
treed9dfb2f88c73654bf2fae5dba431a8e2de337a8d /applications/luci-app-statistics/root/usr/share
parent81cf99a50706a75a2259296e4aab3f7b3bf5d54e (diff)
luci-app-statistics: add missing ACL rules
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-statistics/root/usr/share')
-rw-r--r--applications/luci-app-statistics/root/usr/share/rpcd/acl.d/luci-app-statistics.json23
1 files changed, 23 insertions, 0 deletions
diff --git a/applications/luci-app-statistics/root/usr/share/rpcd/acl.d/luci-app-statistics.json b/applications/luci-app-statistics/root/usr/share/rpcd/acl.d/luci-app-statistics.json
new file mode 100644
index 0000000000..2529fca16d
--- /dev/null
+++ b/applications/luci-app-statistics/root/usr/share/rpcd/acl.d/luci-app-statistics.json
@@ -0,0 +1,23 @@
+{
+ "luci-app-statistics": {
+ "description": "Grant access to statistics resources",
+ "read": {
+ "cgi-io": [ "read", "exec" ],
+ "file": {
+ "/etc/filesystems": [ "read" ],
+ "/etc/group": [ "read" ],
+ "/etc/passwd": [ "read" ],
+ "/proc/filesystems": [ "read" ],
+ "/proc/interrupts": [ "read" ],
+ "/proc/mounts": [ "read" ],
+ "/proc/partitions": [ "read" ],
+ "/proc/sys/kernel/hostname": [ "read" ],
+ "/usr/bin/rrdtool graph - -a PNG *": [ "exec" ],
+ "/usr/sbin/iptables-save": [ "exec" ],
+ "/usr/sbin/ip6tables-save": [ "exec" ],
+ "/usr/sbin/sensors -j": [ "exec" ],
+ "/usr/share/luci/statistics/plugins/*.json": [ "read" ]
+ }
+ }
+ }
+}