luci-app-opkg: full convert to client side actions
[project/luci.git] / applications / luci-app-opkg / root / usr / share / rpcd / acl.d / luci-app-opkg.json
1 {
2 "luci-app-opkg": {
3 "description": "Grant access to opkg management",
4 "read": {
5 "cgi-io": [ "exec" ],
6 "file": {
7 "/usr/libexec/opkg-list installed": [ "exec" ],
8 "/usr/libexec/opkg-list available": [ "exec" ],
9 "/etc/opkg.conf": [ "read" ],
10 "/etc/opkg/*.conf": [ "read" ]
11 },
12 "ubus": {
13 "luci": [ "getMountPoints" ]
14 }
15 },
16 "write": {
17 "file": {
18 "/bin/opkg * install *": [ "exec" ],
19 "/bin/opkg * remove *": [ "exec" ],
20 "/bin/opkg * update": [ "exec" ],
21 "/etc/opkg.conf": [ "write" ],
22 "/etc/opkg/*.conf": [ "write" ],
23 "/tmp/upload.ipk": [ "write" ]
24 }
25 }
26 }
27 }