diff options
Diffstat (limited to 'applications/luci-app-tor/root')
-rw-r--r-- | applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json | 31 | ||||
-rw-r--r-- | applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json | 25 |
2 files changed, 56 insertions, 0 deletions
diff --git a/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json new file mode 100644 index 0000000000..0ea6d1c935 --- /dev/null +++ b/applications/luci-app-tor/root/usr/share/luci/menu.d/luci-app-tor.json @@ -0,0 +1,31 @@ +{ + "admin/services/tor": { + "title": "Tor onion router", + "order": 60, + "action": { + "type": "alias", + "path": "admin/services/tor/tor-hs" + }, + "depends": { + "acl": [ + "luci-app-tor" + ] + } + }, + "admin/services/tor/tor-hs": { + "title": "Tor Onion Services", + "order": 20, + "action": { + "type": "view", + "path": "tor/tor-hs" + } + }, + "admin/services/tor/tor": { + "title": "Tor Onion router", + "order": 30, + "action": { + "type": "view", + "path": "tor/tor" + } + } +} diff --git a/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json new file mode 100644 index 0000000000..8095a17fda --- /dev/null +++ b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json @@ -0,0 +1,25 @@ +{ + "luci-app-tor": { + "description": "Grant UCI access for luci-app-tor", + "read": { + "ubus": { + "tor-hs-rpc": [ + "list-hs" + ] + }, + "uci": [ + "tor", + "tor-hs" + ] + }, + "write": { + "uci": [ + "tor", + "tor-hs" + ], + "file": { + "/etc/tor/*": [ "write" ] + } + } + } +} |