summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json
blob: af9fc514e134278074cc30b403d33b0cc3e54d60 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
	"unauthenticated": {
		"description": "Allow system feature probing",
		"read": {
			"ubus": {
				"luci": [ "getFeatures" ]
			}
		}
	},

	"luci-base": {
		"description": "Grant access to basic LuCI procedures",
		"read": {
			"file": {
				"/": [ "list" ],
				"/*": [ "list" ]
			},
			"ubus": {
				"file": [ "list" ],
				"uci": [ "changes", "get" ]
			}
		},
		"write": {
			"cgi-io": [ "upload" ],
			"file": {
				"/etc/luci-uploads/*": [ "write" ]
			},
			"ubus": {
				"file": [ "remove" ],
				"uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
			}
		}
	},

	"luci-base-network-status": {
		"description": "Grant access to network status information",
		"read": {
			"ubus": {
				"luci-rpc": [ "getBoardJSON", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
				"network": [ "get_proto_handlers" ],
				"network.interface": [ "dump" ]
			},
			"uci": [ "luci", "network", "wireless" ]
		}
	}
}