luci-app-ttyd: add ACL rules
authorJo-Philipp Wich <jo@mein.io>
Sun, 12 Apr 2020 09:05:18 +0000 (11:05 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 12 Apr 2020 09:09:15 +0000 (11:09 +0200)
Ref: https://github.com/openwrt/luci/issues/3902#issuecomment-612551325
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-ttyd/root/usr/share/rpcd/acl.d/luci-app-ttyd.json [new file with mode: 0644]

diff --git a/applications/luci-app-ttyd/root/usr/share/rpcd/acl.d/luci-app-ttyd.json b/applications/luci-app-ttyd/root/usr/share/rpcd/acl.d/luci-app-ttyd.json
new file mode 100644 (file)
index 0000000..7712e7c
--- /dev/null
@@ -0,0 +1,11 @@
+{
+       "luci-app-ttyd": {
+               "description": "Grant UCI access for luci-app-ttyd",
+               "read": {
+                       "uci": [ "ttyd" ]
+               },
+               "write": {
+                       "uci": [ "ttyd" ]
+               }
+       }
+}