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 <itsascambutmailmeanyway@gmail.com>
Wed, 7 Feb 2024 14:47:10 +0000 (15:47 +0100)
Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
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