summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-nut/root/usr/share/rpcd
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-10-09 15:27:46 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-10-10 00:42:40 +0200
commit84c04c3707b992ba8aa1c66ee876d46eaeeb47ef (patch)
tree9688a1a8aab6dbb486720b2ac9eca2513ad3416c /applications/luci-app-nut/root/usr/share/rpcd
parentf6e6b055d514595941db4a4cc11c3d9902eabefb (diff)
luci-app-nut: Convert to JS
Tested on 23.05.5 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-nut/root/usr/share/rpcd')
-rw-r--r--applications/luci-app-nut/root/usr/share/rpcd/acl.d/luci-app-nut.json11
1 files changed, 11 insertions, 0 deletions
diff --git a/applications/luci-app-nut/root/usr/share/rpcd/acl.d/luci-app-nut.json b/applications/luci-app-nut/root/usr/share/rpcd/acl.d/luci-app-nut.json
index f9abbed338..6eefb95b09 100644
--- a/applications/luci-app-nut/root/usr/share/rpcd/acl.d/luci-app-nut.json
+++ b/applications/luci-app-nut/root/usr/share/rpcd/acl.d/luci-app-nut.json
@@ -2,6 +2,17 @@
"luci-app-nut": {
"description": "Grant UCI access for luci-app-nut",
"read": {
+ "file": {
+ "/etc/ssl/certs": [ "read" ],
+ "/tmp/*": [ "list" ],
+ "/lib/lnut": [ "read" ],
+ "/lib/nut/": [ "list" ],
+ "/usr/sbin/upsd": [ "read" ],
+ "/usr/sbin/upsmon": [ "read" ],
+ "/var/run/nut": [ "read" ],
+ "/usr/bin/ldd /usr/sbin/upsmon": ["exec"],
+ "/usr/bin/ldd /usr/sbin/upsd": ["exec"]
+ },
"uci": [ "nut_cgi", "nut_monitor", "nut_server" ]
},
"write": {