summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-wireguard/root/usr/share/rpcd/acl.d/luci-wireguard.json
blob: e7187c0e4f49b3ebd8aaf9bff4d0184773240c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
	"luci-proto-wireguard": {
		"description": "Grant access to LuCI Wireguard procedures",
		"read": {
			"file": {
				"/usr/bin/qrencode --inline --8bit --type=SVG --output=- -- *": [ "exec" ]
			},
			"ubus": {
				"luci.wireguard": [
					"getWgInstances"
				]
			},
			"uci": [ "ddns", "system" ]
		},
		"write": {
			"ubus": {
				"luci.wireguard": [
					"generateKeyPair",
					"getPublicAndPrivateKeyFromPrivate",
					"generatePsk"
				]
			}
		}
	}
}