summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2024-02-04 15:16:47 +0200
committerPaul Donald <itsascambutmailmeanyway@gmail.com>2024-02-07 15:47:10 +0100
commit9551c03f6830e5543f2ea5fa96f02fa86f2378bb (patch)
tree2194dc6fd1b295244e1f3adc09ca0a7417ce9b94
parenta5dfb9604c1b9eb7ac220ae83dc0478b0e3a58f0 (diff)
luci-app-cloudflared: fix ACL for uploading a file
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
-rw-r--r--applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json9
1 files changed, 6 insertions, 3 deletions
diff --git a/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json b/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json
index 3013b35dba..287110f4d5 100644
--- a/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json
+++ b/applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json
@@ -7,13 +7,16 @@
"service": [ "list" ]
},
"file": {
- "/var/log/cloudflared.log": [ "read" ],
- "/usr/bin/cloudflared *": [ "exec" ]
+ "/etc/cloudflared/*": [ "read" ],
+ "/var/log/cloudflared.log": [ "read" ]
}
},
"write": {
"uci": [ "cloudflared" ],
- "file": [ "/etc/cloudflared/" ]
+ "file": {
+ "/etc/cloudflared/*": [ "write" ],
+ "/usr/bin/cloudflared *": [ "exec" ]
+ }
}
}
} \ No newline at end of file