From ae2b63661207a8a50b5dd034223659d4fb2117b9 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Jun 2022 23:56:58 +0200 Subject: [PATCH] luci-proto-wireguard: grant uci read access to system and ddns config 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 (cherry picked from commit 4769bf11aa5d33cda4785faec8046c67cb51a606) --- .../root/usr/share/rpcd/acl.d/luci-wireguard.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json b/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json index 079be14793..674deb6c7d 100644 --- a/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json +++ b/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json @@ -4,7 +4,8 @@ "read": { "file": { "/usr/bin/qrencode --inline --8bit --type=SVG --output=- -- *": [ "exec" ] - } + }, + "uci": [ "ddns", "system" ] }, "write": { "ubus": { -- 2.30.2