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>
20 lines
392 B
JSON
20 lines
392 B
JSON
{
|
|
"luci-proto-wireguard": {
|
|
"description": "Grant access to LuCI Wireguard procedures",
|
|
"read": {
|
|
"file": {
|
|
"/usr/bin/qrencode --inline --8bit --type=SVG --output=- -- *": [ "exec" ]
|
|
},
|
|
"uci": [ "ddns", "system" ]
|
|
},
|
|
"write": {
|
|
"ubus": {
|
|
"luci.wireguard": [
|
|
"generateKeyPair",
|
|
"getPublicAndPrivateKeyFromPrivate",
|
|
"generatePsk"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|