luci-app-cloudflared: fix ACL for uploading a file
authorSergey Ponomarev <stokito@gmail.com>
Sun, 4 Feb 2024 13:16:47 +0000 (15:16 +0200)
committerPaul Donald <newtwen@gmail.com>
Thu, 8 Feb 2024 13:32:15 +0000 (14:32 +0100)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 9551c03f6830e5543f2ea5fa96f02fa86f2378bb)

applications/luci-app-cloudflared/root/usr/share/rpcd/acl.d/luci-app-cloudflared.json

index 3013b35dbacf8f8958c8cf020b6be6bb4c3673c1..287110f4d5417e0e170708df7336b7a43ae2dbd8 100644 (file)
@@ -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