64974e8077ed3e8028c024ec5bf2902b7d22daa9
[project/luci2/ui.git] / luci2 / share / acl.d / luci2.json
1 {
2         "unauthenticated": {
3                 "description": "Functions allowed for unauthenticated requests",
4                 "read": {
5                         "ubus": {
6                                 "luci2.ui": [
7                                         "themes"
8                                 ]
9                         }
10                 }
11         },
12
13         "core": {
14                 "description": "Core functions for LuCI",
15                 "read": {
16                         "ubus": {
17                                 "luci2.ui": [
18                                         "*"
19                                 ],
20                                 "session": [
21                                         "access",
22                                         "destroy"
23                                 ],
24                                 "uci": [
25                                         "*"
26                                 ]
27                         }
28                 }
29         },
30
31         "status": {
32                 "description": "Status information display",
33                 "read": {
34                         "ubus": {
35                                 "iwinfo": [
36                                         "devices",
37                                         "info",
38                                         "assoclist"
39                                 ],
40                                 "system": [
41                                         "info",
42                                         "board"
43                                 ],
44                                 "network.interface": [
45                                         "status"
46                                 ],
47                                 "luci2.network": [
48                                         "conntrack_count",
49                                         "dhcp_leases",
50                                         "dhcp6_leases",
51                                         "arp_table",
52                                         "routes",
53                                         "routes6"
54                                 ],
55                                 "luci2.system": [
56                                         "diskfree",
57                                         "syslog",
58                                         "dmesg",
59                                         "process_list"
60                                 ]
61                         }
62                 },
63                 "write": {
64                         "ubus": {
65                                 "luci2.system": [
66                                         "process_signal"
67                                 ]
68                         }
69                 }
70         },
71
72         "system": {
73                 "description": "General system settings",
74                 "read": {
75                         "ubus": {
76                                 "system": [
77                                         "info",
78                                         "board"
79                                 ],
80                                 "luci2.system": [
81                                         "init_list"
82                                 ]
83                         },
84                         "uci": [
85                                 "luci"
86                         ]
87                 },
88                 "write": {
89                         "ubus": {
90                                 "luci2.system": [
91                                         "init_action"
92                                 ]
93                         },
94                         "uci": [
95                                 "luci"
96                         ]
97                 }
98         },
99
100         "admin": {
101                 "description": "Authentication and SSH settings",
102                 "read": {
103                         "ubus": {
104                                 "luci2.system": [
105                                         "sshkeys_get"
106                                 ]
107                         },
108                         "uci": [
109                                 "dropbear"
110                         ]
111                 },
112                 "write": {
113                         "ubus": {
114                                 "luci2.system": [
115                                         "sshkeys_set",
116                                         "password_set"
117                                 ]
118                         },
119                         "uci": [
120                                 "dropbear"
121                         ]
122                 }
123         },
124
125         "users": {
126                 "description": "Guest login settings",
127                 "read": {
128                         "uci": [
129                                 "rpcd"
130                         ]
131                 },
132                 "write": {
133                         "uci": [
134                                 "rpcd"
135                         ]
136                 }
137         },
138
139         "software": {
140                 "description": "Package management",
141                 "read": {
142                         "ubus": {
143                                 "system": [
144                                         "info",
145                                         "board"
146                                 ],
147                                 "luci2.opkg": [
148                                         "list",
149                                         "list_installed",
150                                         "find",
151                                         "config_get"
152                                 ]
153                         }
154                 },
155                 "write": {
156                         "ubus": {
157                                 "luci2.opkg": [
158                                         "install",
159                                         "remove",
160                                         "update",
161                                         "config_set"
162                                 ]
163                         }
164                 }
165         },
166
167         "startup": {
168                 "description": "System boot settings",
169                 "read": {
170                         "ubus": {
171                                 "luci2.system": [
172                                         "init_list",
173                                         "rclocal_get"
174                                 ]
175                         }
176                 },
177                 "write": {
178                         "ubus": {
179                                 "luci2.system": [
180                                         "init_action",
181                                         "rclocal_set"
182                                 ]
183                         }
184                 }
185         },
186
187         "cron": {
188                 "description": "Crontab management",
189                 "read": {
190                         "ubus": {
191                                 "luci2.system": [
192                                         "crontab_get"
193                                 ]
194                         }
195                 },
196                 "write": {
197                         "ubus": {
198                                 "luci2.system": [
199                                         "crontab_set"
200                                 ]
201                         }
202                 }
203         },
204
205         "leds": {
206                 "description": "Hardware LED configuration",
207                 "read": {
208                         "ubus": {
209                                 "network.device": [
210                                         "status"
211                                 ],
212                                 "luci2.system": [
213                                         "led_list",
214                                         "usb_list"
215                                 ]
216                         },
217                         "uci": [
218                                 "system"
219                         ]
220                 },
221                 "write": {
222                         "uci": [
223                                 "system"
224                         ]
225                 }
226         }
227 }