luci/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json
Christian Marangi f1db42e670 luci-mod-status: add ACL entry for storage index
Add missing ACL entry for storage index page.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: expand storage index page with mount points

Expand storage index page with mount points. For custom mounts point we
use the device name and we reference the mount point between ().

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

luci-mod-status: ensure each storage getMountPoints result is unique

Signed-off-by: Paul Donald <newtwen@gmail.com>

Closes #2767
2023-12-07 00:15:33 +01:00

72 lines
1.4 KiB
JSON

{
"luci-mod-status-index": {
"description": "Grant access to main status display",
"read": {
"file": {
"/etc/board.json": [ "read" ],
"/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
"/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
"/www/luci-static/resources/view/status/include": [ "list" ]
},
"ubus": {
"luci": [ "getVersion" ],
"file": [ "list", "read" ],
"system": [ "board", "info" ]
}
},
"write": {
"uci": [ "dhcp" ]
}
},
"luci-mod-status-index-storage": {
"description": "Grant access to Storage and Mount status display",
"read": {
"ubus": {
"luci": [ "getMountPoints" ],
"system": [ "info" ]
}
}
},
"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-ports": {
"description": "Grant access to port status display",
"read": {
"ubus": {
"luci": [ "getBuiltinEthernetPorts" ]
}
}
},
"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" ]
}
}
}
}