From 330707bd13537ec4da70ed7577b2523387b2075b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 25 Oct 2023 23:15:16 +0200 Subject: [PATCH] luci-mod-status: add ACL to allow access to getBuiltinEthernetPorts Fixes: ed059e4cd3 ("luci-mod-status: 29_ports.js: attempt to use getBuiltinEthernetPorts") Signed-off-by: Jo-Philipp Wich (cherry picked from commit 575ce5512df534b52185af877d26192adde6a9b5) --- .../root/usr/share/rpcd/acl.d/luci-mod-status-index.json | 9 +++++++++ 1 file changed, 9 insertions(+) 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 index 83ca325969..20cd23bb6c 100644 --- 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 @@ -37,6 +37,15 @@ } }, + "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": { -- 2.30.2