diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 16:42:55 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 22:58:15 +0200 |
commit | a4621c95201a6ac436b3cfdc9bf6ed2d2571e607 (patch) | |
tree | ac4402d775b857eee27e649e12b541f2602502ec /modules/luci-base/root/usr/share/rpcd | |
parent | 3b335f2764bfda3f18e13bf492e461977599e411 (diff) |
luci-base: luci.js: introduce hasSystemFeature() api
The new function allows querying the presence of certain system features
such as dnsmasq or firewall availability or the compile time features
of hostapd and wpa_supplicant.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/root/usr/share/rpcd')
-rw-r--r-- | modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json index e58c9947bc..5d08a4eab8 100644 --- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json +++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json @@ -1,4 +1,13 @@ { + "unauthenticated": { + "description": "Allow system feature probing", + "read": { + "ubus": { + "luci": [ "getFeatures" ] + } + } + }, + "uci-access": { "description": "Grant uci write access to all configurations", "read": { |