summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-unbound/root/usr/share/rpcd/acl.d/luci-app-unbound.json
blob: 36c62665e82e82a3636d6fe561da5935d600f536 (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
26
27
28
29
30
31
32
{
	"luci-app-unbound": {
		"description": "Grant UCI access for luci-app-unbound",
		"read": {
			"file": {
				"/etc/config/unbound": ["read"],
				"/etc/unbound/*": ["read"],
				"/tmp/resolv.conf.auto": ["read"],
				"/tmp/resolv.conf.d/*": ["read"],
				"/var/lib/unbound/*": ["read"],
				"/sbin/logread -e unbound:": ["exec"],
				"/usr/sbin/unbound-control -c /var/lib/unbound/unbound.conf stats_noreset": ["exec"],
				"/usr/sbin/unbound-control -c /var/lib/unbound/unbound.conf list_local_data": ["exec"],
				"/usr/sbin/unbound-control -c /var/lib/unbound/unbound.conf list_local_zones": ["exec"],
				"/usr/sbin/unbound-control -c /var/lib/unbound/unbound.conf dump_cache": ["exec"]
			},
			"uci": [ "unbound" ]
		},
		"write": {
			"file": {
				"/etc/config/unbound": ["write"],
				"/etc/unbound/*": ["write"],
				"/lib/unbound/*": ["write"],
				"/var/lib/unbound/*": ["write"]
			},
			"ubus": {
				"rc": [ "init" ]
			},
			"uci": [ "unbound" ]
		}
	}
}