From 2f32ddd6031bc9e0066478696aa2b6762c35d2b3 Mon Sep 17 00:00:00 2001 From: Zhao ZHANG Date: Tue, 9 Jun 2020 23:25:43 +0200 Subject: luci-mod-dashboard: initial checkin Signed-off-by: ZHANG Zhao [improve firmware version, fix dependencies, clean acls] Signed-off-by: Paul Spooren [fix css for themes other than bootstrap] Signed-off-by: Florian Eckert --- .../usr/share/rpcd/acl.d/luci-mod-dashboard.json | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 modules/luci-mod-dashboard/root/usr/share/rpcd/acl.d/luci-mod-dashboard.json (limited to 'modules/luci-mod-dashboard/root/usr/share/rpcd') 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" ] + } + } + } +} -- cgit v1.2.3