From a27d2dbc32785c3389ea77a26714e7f6c67c9185 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 17 Dec 2022 15:00:24 +0100 Subject: luci-base, luci-mod-status: expose LuCI version via ubus Instead of scraping the LuCI version from Lua sources, fetch it via ubus in order to be independent from the Lua runtime. Fixes: #6154 Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/rpcd/acl.d/luci-mod-status-index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-mod-status/root/usr') 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 a9ae0cef49..7c2cd0998f 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 @@ -5,10 +5,10 @@ "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": { + "luci": [ "getVersion" ], "file": [ "list", "read" ], "system": [ "board", "info" ] } -- cgit v1.2.3