From 9551c03f6830e5543f2ea5fa96f02fa86f2378bb Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sun, 4 Feb 2024 15:16:47 +0200 Subject: luci-app-cloudflared: fix ACL for uploading a file Signed-off-by: Sergey Ponomarev --- .../root/usr/share/rpcd/acl.d/luci-app-cloudflared.json | 9 ++++++--- 1 file 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 -- cgit v1.2.3