luci-app-transmission: add ACL definitions
authorJo-Philipp Wich <jo@mein.io>
Sat, 18 Apr 2020 17:33:51 +0000 (19:33 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sat, 18 Apr 2020 17:34:37 +0000 (19:34 +0200)
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3000
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-transmission/root/usr/share/rpcd/acl.d/luci-app-transmission.json [new file with mode: 0644]

diff --git a/applications/luci-app-transmission/root/usr/share/rpcd/acl.d/luci-app-transmission.json b/applications/luci-app-transmission/root/usr/share/rpcd/acl.d/luci-app-transmission.json
new file mode 100644 (file)
index 0000000..79d9306
--- /dev/null
@@ -0,0 +1,18 @@
+{
+       "luci-app-olsr": {
+               "description": "Grant UCI access for luci-app-transmission",
+               "read": {
+                       "file": {
+                               "/usr/share/transmission/web/index.html": [ "list" ]
+                       },
+                       "ubus": {
+                               "file": [ "stat" ],
+                               "service": [ "list" ]
+                       },
+                       "uci": [ "transmission" ]
+               },
+               "write": {
+                       "uci": [ "transmission" ]
+               }
+       }
+}