summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json')
-rw-r--r--modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json41
1 files changed, 41 insertions, 0 deletions
diff --git a/modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json b/modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json
new file mode 100644
index 0000000000..1f331e7b4b
--- /dev/null
+++ b/modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json
@@ -0,0 +1,41 @@
+{
+ "luci-mod-dashboard-routes": {
+ "description": "Grant access to the system route status",
+ "read": {
+ "ubus": {
+ "file": [ "exec" ]
+ }
+ }
+ },
+
+ "luci-mod-dashboard-index": {
+ "description": "Grant access to main status display",
+ "read": {
+ "file": {
+ "/www/luci-static/resources/view/status/include": [ "list" ]
+ },
+ "ubus": {
+ "file": [ "list", "read" ],
+ "system": [ "board", "info" ]
+ }
+ }
+ },
+
+ "luci-mod-dashboard-index-dhcp": {
+ "description": "Grant access to DHCP status display",
+ "read": {
+ "ubus": {
+ "luci-rpc": [ "getDHCPLeases" ]
+ }
+ }
+ },
+
+ "luci-mod-dashboard-index-wifi": {
+ "description": "Grant access to wireless status display",
+ "read": {
+ "ubus": {
+ "iwinfo": [ "assoclist" ]
+ }
+ }
+ }
+}