diff options
-rw-r--r-- | modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json | 52 | ||||
-rw-r--r-- | modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json | 51 |
2 files changed, 52 insertions, 51 deletions
diff --git a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json new file mode 100644 index 0000000000..a9ae0cef49 --- /dev/null +++ b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json @@ -0,0 +1,52 @@ +{ + "luci-mod-status-index": { + "description": "Grant access to main status display", + "read": { + "file": { + "/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ], + "/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ], + "/usr/lib/lua/luci/version.lua": [ "read" ], + "/www/luci-static/resources/view/status/include": [ "list" ] + }, + "ubus": { + "file": [ "list", "read" ], + "system": [ "board", "info" ] + } + }, + "write": { + "uci": [ "dhcp" ] + } + }, + + "luci-mod-status-index-dhcp": { + "description": "Grant access to DHCP status display", + "read": { + "ubus": { + "luci-rpc": [ "getDHCPLeases" ] + } + } + }, + + "luci-mod-status-index-dsl": { + "description": "Grant access to DSL status display", + "read": { + "ubus": { + "dsl": [ "metrics" ] + } + } + }, + + "luci-mod-status-index-wifi": { + "description": "Grant access to wireless status display", + "read": { + "ubus": { + "iwinfo": [ "assoclist" ] + } + }, + "write": { + "ubus": { + "hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ] + } + } + } +} diff --git a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json index 7199cb76f9..32de24c06f 100644 --- a/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json +++ b/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json @@ -90,56 +90,5 @@ "file": [ "exec" ] } } - }, - - "luci-mod-status-index": { - "description": "Grant access to main status display", - "read": { - "file": { - "/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ], - "/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ], - "/usr/lib/lua/luci/version.lua": [ "read" ], - "/www/luci-static/resources/view/status/include": [ "list" ] - }, - "ubus": { - "file": [ "list", "read" ], - "system": [ "board", "info" ] - } - }, - "write": { - "uci": [ "dhcp" ] - } - }, - - "luci-mod-status-index-dhcp": { - "description": "Grant access to DHCP status display", - "read": { - "ubus": { - "luci-rpc": [ "getDHCPLeases" ] - } - } - }, - - "luci-mod-status-index-dsl": { - "description": "Grant access to DSL status display", - "read": { - "ubus": { - "dsl": [ "metrics" ] - } - } - }, - - "luci-mod-status-index-wifi": { - "description": "Grant access to wireless status display", - "read": { - "ubus": { - "iwinfo": [ "assoclist" ] - } - }, - "write": { - "ubus": { - "hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ] - } - } } } |