summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-ttyd/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-12 11:05:18 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-12 11:09:15 +0200
commitc35cb317fe6a5d42e3c7294e02fac65c50ef3f3c (patch)
tree1e724b9751d8e42b01c21a2408f304cbd0d81ad7 /applications/luci-app-ttyd/root/usr
parent8792a4c3f0e2011f97771c660eb6084aab0b44be (diff)
luci-app-ttyd: add ACL rules
Ref: https://github.com/openwrt/luci/issues/3902#issuecomment-612551325 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-ttyd/root/usr')
-rw-r--r--applications/luci-app-ttyd/root/usr/share/rpcd/acl.d/luci-app-ttyd.json11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..7712e7c009
--- /dev/null
+++ b/applications/luci-app-ttyd/root/usr/share/rpcd/acl.d/luci-app-ttyd.json
@@ -0,0 +1,11 @@
+{
+ "luci-app-ttyd": {
+ "description": "Grant UCI access for luci-app-ttyd",
+ "read": {
+ "uci": [ "ttyd" ]
+ },
+ "write": {
+ "uci": [ "ttyd" ]
+ }
+ }
+}