summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/root/usr/share/rpcd
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-03-03 15:19:21 +0100
committerJo-Philipp Wich <jo@mein.io>2020-03-03 15:21:48 +0100
commit9b25031cb29bd59561e550daccb69935834d7d63 (patch)
tree28f349f51016e2b95caa64221c8927e4bb034e14 /applications/luci-app-opkg/root/usr/share/rpcd
parent95804e5eaf917b2026f50ec262c3bae711a6b317 (diff)
luci-app-opkg: rework backend operations
Introduce a new /usr/libexec/opkg-call helper and invoke it via cgi-io instead of ubus. This is required to be able to reload rpcd without timing out currently running opkg ubus calls. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/root/usr/share/rpcd')
-rw-r--r--applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json10
1 files changed, 5 insertions, 5 deletions
diff --git a/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json b/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json
index 66ef81f103..37f75fb7c9 100644
--- a/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json
+++ b/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json
@@ -4,8 +4,8 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
- "/usr/libexec/opkg-list installed": [ "exec" ],
- "/usr/libexec/opkg-list available": [ "exec" ],
+ "/usr/libexec/opkg-call list-installed": [ "exec" ],
+ "/usr/libexec/opkg-call list-available": [ "exec" ],
"/etc/opkg.conf": [ "read" ],
"/etc/opkg/*.conf": [ "read" ]
},
@@ -15,9 +15,9 @@
},
"write": {
"file": {
- "/bin/opkg * install *": [ "exec" ],
- "/bin/opkg * remove *": [ "exec" ],
- "/bin/opkg * update": [ "exec" ],
+ "/usr/libexec/opkg-call install *": [ "exec" ],
+ "/usr/libexec/opkg-call remove *": [ "exec" ],
+ "/usr/libexec/opkg-call update *": [ "exec" ],
"/etc/opkg.conf": [ "write" ],
"/etc/opkg/*.conf": [ "write" ],
"/tmp/upload.ipk": [ "write" ]