summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-transmission/root/usr
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-04-18 19:33:51 +0200
committerJo-Philipp Wich <jo@mein.io>2020-04-18 19:34:37 +0200
commitd733520d6b30fe4f226f2651e9ebdf4e95211a3c (patch)
treed77b0065c3d01da9123a5ea0b2272fe958089cfd /applications/luci-app-transmission/root/usr
parent1f082a6ac68e0eadefbb1066f4032fb0d2745cfa (diff)
luci-app-transmission: add ACL definitions
Ref: https://bugs.openwrt.org/index.php?do=details&task_id=3000 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-transmission/root/usr')
-rw-r--r--applications/luci-app-transmission/root/usr/share/rpcd/acl.d/luci-app-transmission.json18
1 files changed, 18 insertions, 0 deletions
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
index 0000000000..79d9306ef4
--- /dev/null
+++ b/applications/luci-app-transmission/root/usr/share/rpcd/acl.d/luci-app-transmission.json
@@ -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" ]
+ }
+ }
+}