diff options
Diffstat (limited to 'applications/luci-app-aria2/root/usr/share')
-rw-r--r-- | applications/luci-app-aria2/root/usr/share/luci/menu.d/luci-app-aria2.json | 40 | ||||
-rw-r--r-- | applications/luci-app-aria2/root/usr/share/rpcd/acl.d/luci-app-aria2.json | 9 |
2 files changed, 49 insertions, 0 deletions
diff --git a/applications/luci-app-aria2/root/usr/share/luci/menu.d/luci-app-aria2.json b/applications/luci-app-aria2/root/usr/share/luci/menu.d/luci-app-aria2.json new file mode 100644 index 0000000000..8728252501 --- /dev/null +++ b/applications/luci-app-aria2/root/usr/share/luci/menu.d/luci-app-aria2.json @@ -0,0 +1,40 @@ +{ + "admin/services/aria2": { + "title": "Aria2", + "order": 30, + "action": { + "type": "firstchild" + }, + "depends": { + "acl": [ "luci-app-aria2" ], + "uci": { "aria2": true } + } + }, + + "admin/services/aria2/config": { + "title": "Configuration", + "order": 10, + "action": { + "type": "view", + "path": "aria2/config" + } + }, + + "admin/services/aria2/files": { + "title": "Files", + "order": 20, + "action": { + "type": "view", + "path": "aria2/files" + } + }, + + "admin/services/aria2/log": { + "title": "Log", + "order": 30, + "action": { + "type": "view", + "path": "aria2/log" + } + } +} diff --git a/applications/luci-app-aria2/root/usr/share/rpcd/acl.d/luci-app-aria2.json b/applications/luci-app-aria2/root/usr/share/rpcd/acl.d/luci-app-aria2.json index 891f97c28f..af5d31e9bd 100644 --- a/applications/luci-app-aria2/root/usr/share/rpcd/acl.d/luci-app-aria2.json +++ b/applications/luci-app-aria2/root/usr/share/rpcd/acl.d/luci-app-aria2.json @@ -2,6 +2,15 @@ "luci-app-aria2": { "description": "Grant UCI access for luci-app-aria2", "read": { + "ubus": { + "service": [ "list" ] + }, + "file": { + "/etc/passwd": [ "read" ], + "/sbin/logread": [ "exec" ], + "/usr/bin/aria2c": [ "exec" ], + "/usr/libexec/aria2-call": [ "exec" ] + }, "uci": [ "aria2" ] }, "write": { |