summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-12-17 15:00:24 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-17 15:01:46 +0100
commita27d2dbc32785c3389ea77a26714e7f6c67c9185 (patch)
tree578eed51469131c4ca9bdfe16894f964fc636453 /modules/luci-mod-status/root/usr
parent05194712bb2119b79041f256c44e35a044594f75 (diff)
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 <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-status/root/usr')
-rw-r--r--modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status-index.json2
1 files changed, 1 insertions, 1 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
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" ]
}