luci-base, luci-mod-status: convert realtime stats to client side views
[project/luci.git] / modules / luci-base / root / usr / share / rpcd / acl.d / luci-base.json
1 {
2 "unauthenticated": {
3 "description": "Allow system feature probing",
4 "read": {
5 "ubus": {
6 "luci": [ "getFeatures" ]
7 }
8 }
9 },
10
11 "uci-access": {
12 "description": "Grant uci write access to all configurations",
13 "read": {
14 "uci": [ "*" ]
15 },
16 "write": {
17 "uci": [ "*" ]
18 }
19 },
20 "luci-access": {
21 "description": "Grant access to basic LuCI procedures",
22 "read": {
23 "cgi-io": [ "backup", "download" ],
24 "file": {
25 "/": [ "list" ],
26 "/*": [ "list" ],
27 "/dev/mtdblock*": [ "read" ],
28 "/etc/crontabs/root": [ "read" ],
29 "/etc/dropbear/authorized_keys": [ "read" ],
30 "/etc/filesystems": [ "read" ],
31 "/etc/rc.local": [ "read" ],
32 "/etc/sysupgrade.conf": [ "read" ],
33 "/etc/passwd": [ "read" ],
34 "/etc/group": [ "read" ],
35 "/proc/filesystems": [ "read" ],
36 "/proc/mtd": [ "read" ],
37 "/proc/partitions": [ "read" ],
38 "/proc/sys/kernel/hostname": [ "read" ],
39 "/proc/sys/net/netfilter/nf_conntrack_*": [ "read" ],
40 "/proc/mounts": [ "read" ],
41 "/usr/lib/lua/luci/version.lua": [ "read" ]
42 },
43 "ubus": {
44 "file": [ "list", "read", "stat" ],
45 "iwinfo": [ "assoclist", "freqlist", "txpowerlist", "countrylist" ],
46 "luci": [ "getConntrackList", "getDUIDHints", "getInitList", "getLocaltime", "getRealtimeStats", "getTimezones", "getLEDs", "getUSBDevices", "getSwconfigFeatures", "getSwconfigPortState", "getBlockDevices", "getMountPoints" ],
47 "luci-rpc": [ "getBoardJSON", "getDHCPLeases", "getDSLStatus", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
48 "network.interface": [ "dump" ],
49 "network.rrdns": [ "lookup" ],
50 "network": [ "get_proto_handlers" ],
51 "system": [ "board", "info", "validate_firmware_image" ],
52 "uci": [ "changes", "get" ]
53 },
54 "uci": [ "*" ]
55 },
56 "write": {
57 "cgi-io": [ "upload" ],
58 "file": {
59 "/etc/crontabs/root": [ "write" ],
60 "/etc/dropbear/authorized_keys": [ "write" ],
61 "/etc/luci-uploads/*": [ "write" ],
62 "/etc/rc.local": [ "write" ],
63 "/etc/sysupgrade.conf": [ "write" ],
64 "/sbin/block": [ "exec" ],
65 "/sbin/firstboot": [ "exec" ],
66 "/sbin/ifup": [ "exec" ],
67 "/sbin/reboot": [ "exec" ],
68 "/sbin/sysupgrade": [ "exec" ],
69 "/sbin/wifi": [ "exec" ],
70 "/bin/tar": [ "exec" ],
71 "/bin/umount": [ "exec" ],
72 "/tmp/backup.tar.gz": [ "write" ],
73 "/tmp/firmware.bin": [ "write" ],
74 "/tmp/upload.ipk": [ "write" ]
75 },
76 "ubus": {
77 "file": [ "write", "remove", "exec" ],
78 "hostapd.*": [ "del_client" ],
79 "iwinfo": [ "scan" ],
80 "luci": [ "setInitAction", "setLocaltime", "setPassword", "setBlockDetect" ],
81 "uci": [ "add", "apply", "confirm", "delete", "order", "set", "rename" ]
82 },
83 "uci": [ "*" ]
84 }
85 },
86 "luci-app-firewall": {
87 "description": "Grant access to firewall procedures",
88 "read": {
89 "ubus": {
90 "luci": [ "getConntrackHelpers" ]
91 },
92 "uci": [ "firewall" ]
93 },
94 "write": {
95 "uci": [ "firewall" ]
96 }
97 }
98 }