summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-status/root/usr/share/rpcd/acl.d/luci-mod-status.json
blob: e23a0ae6b48b6ea2b4893954a45bb528b4d07ce0 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
	"luci-mod-status-realtime": {
		"description": "Grant access to realtime statistics",
		"read": {
			"ubus": {
				"luci": [ "getConntrackList", "getRealtimeStats" ],
				"network.rrdns": [ "lookup" ]
			}
		}
	},

	"luci-mod-status-processes": {
		"description": "Grant access to process status",
		"read": {
			"ubus": {
				"luci": [ "getProcessList" ]
			}
		},
		"write": {
			"file": {
				"/bin/kill": [ "exec" ]
			},
			"ubus": {
				"file": [ "exec" ]
			}
		}
	},

	"luci-mod-status-logs": {
		"description": "Grant access to system logs",
		"read": {
			"cgi-io": [ "exec" ],
			"file": {
				"/bin/dmesg -r": [ "exec" ],
				"/sbin/logread": [ "stat" ],
				"/sbin/logread -e ^": [ "exec" ],
				"/usr/sbin/logread": [ "stat" ],
				"/usr/sbin/logread -e ^": [ "exec" ]
			},
			"ubus": {
				"file": [ "stat" ]
			}
		}
	},

	"luci-mod-status-routes": {
		"description": "Grant access to the system route status",
		"read": {
			"file": {
				"/sbin/ip -[46] neigh show": [ "exec" ],
				"/sbin/ip -[46] route show table all": [ "exec" ]
			},
			"ubus": {
				"file": [ "exec" ]
			}
		}
	},

	"luci-mod-status-channel_analysis": {
		"description": "Grant access to the system route status",
		"read": {
			"ubus": {
				"iwinfo": [ "info", "freqlist" ]
			}
		}
	},

	"luci-mod-status-firewall": {
		"description": "Grant access to firewall status",
		"read": {
			"cgi-io": [ "exec" ],
			"file": {
				"/usr/sbin/iptables --line-numbers -w -nvxL -t *": [ "exec" ],
				"/usr/sbin/ip6tables --line-numbers -w -nvxL -t *": [ "exec" ],
				"/usr/sbin/ip6tables": [ "list" ]
			},
			"ubus": {
				"file": [ "stat" ]
			}
		},
		"write": {
			"cgi-io": [ "exec" ],
			"file": {
				"/etc/init.d/firewall restart": [ "exec" ],
				"/usr/sbin/iptables -Z": [ "exec" ],
				"/usr/sbin/ip6tables -Z": [ "exec" ]
			},
			"ubus": {
				"file": [ "exec" ]
			}
		}
	},

	"luci-mod-status-index": {
		"description": "Grant access to main status display",
		"read": {
			"file": {
				"/proc/sys/net/netfilter/nf_conntrack_count": [ "read" ],
				"/proc/sys/net/netfilter/nf_conntrack_max": [ "read" ],
				"/usr/lib/lua/luci/version.lua": [ "read" ],
				"/www/luci-static/resources/view/status/include": [ "list" ]
			},
			"ubus": {
				"file": [ "list", "read" ],
				"system": [ "board", "info" ]
			}
		}
	},

	"luci-mod-status-index-dhcp": {
		"description": "Grant access to DHCP status display",
		"read": {
			"ubus": {
				"luci-rpc": [ "getDHCPLeases" ]
			}
		}
	},

	"luci-mod-status-index-dsl": {
		"description": "Grant access to DSL status display",
		"read": {
			"ubus": {
				"dsl": [ "metrics" ]
			}
		}
	},

	"luci-mod-status-index-wifi": {
		"description": "Grant access to wireless status display",
		"read": {
			"ubus": {
				"iwinfo": [ "assoclist" ]
			}
		},
		"write": {
			"ubus": {
				"hostapd.*": [ "del_client", "wps_start", "wps_cancel", "wps_status" ]
			}
		}
	}
}