luci-proto-wireguard: grant uci read access to system and ddns config
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Jun 2022 21:56:58 +0000 (23:56 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 1 Aug 2022 09:57:42 +0000 (11:57 +0200)
The configuration export requires access to /e/c/system and /e/c/ddns for
external hostname hints.

Fixes: #5838
Fixes: 9ba20645b0 ("luci-proto-wireguard: rewrite protocol handler")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 4769bf11aa5d33cda4785faec8046c67cb51a606)

protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json

index 079be14793c7bebd6c581e8a9261d1dad2b35cb3..674deb6c7de083dcf66bb832d9036fdb361eaa1e 100644 (file)
@@ -4,7 +4,8 @@
                "read": {
                        "file": {
                                "/usr/bin/qrencode --inline --8bit --type=SVG --output=- -- *": [ "exec" ]
-                       }
+                       },
+                       "uci": [ "ddns", "system" ]
                },
                "write": {
                        "ubus": {