summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-wireguard/root/usr/share
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-06-20 23:56:58 +0200
committerJo-Philipp Wich <jo@mein.io>2022-06-20 23:58:07 +0200
commit4769bf11aa5d33cda4785faec8046c67cb51a606 (patch)
tree97d046f92bbbe41abeea8a3c19f485db5160ebc0 /protocols/luci-proto-wireguard/root/usr/share
parentcc3d97ccecec041128462d44d85f9393a502f60e (diff)
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 <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-wireguard/root/usr/share')
-rw-r--r--protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json3
1 files changed, 2 insertions, 1 deletions
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": {