diff options
Diffstat (limited to 'applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json')
-rw-r--r-- | applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json | 27 |
1 files changed, 27 insertions, 0 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 new file mode 100644 index 000000000..66ef81f10 --- /dev/null +++ b/applications/luci-app-opkg/root/usr/share/rpcd/acl.d/luci-app-opkg.json @@ -0,0 +1,27 @@ +{ + "luci-app-opkg": { + "description": "Grant access to opkg management", + "read": { + "cgi-io": [ "exec" ], + "file": { + "/usr/libexec/opkg-list installed": [ "exec" ], + "/usr/libexec/opkg-list available": [ "exec" ], + "/etc/opkg.conf": [ "read" ], + "/etc/opkg/*.conf": [ "read" ] + }, + "ubus": { + "luci": [ "getMountPoints" ] + } + }, + "write": { + "file": { + "/bin/opkg * install *": [ "exec" ], + "/bin/opkg * remove *": [ "exec" ], + "/bin/opkg * update": [ "exec" ], + "/etc/opkg.conf": [ "write" ], + "/etc/opkg/*.conf": [ "write" ], + "/tmp/upload.ipk": [ "write" ] + } + } + } +} |