summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-tor/root/usr/share/rpcd/acl.d
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2023-12-04 21:09:55 +0200
committerGitHub <noreply@github.com>2023-12-04 20:09:55 +0100
commit3283cb2ebdb3dbd8ae744125ecd577a0025d14ad (patch)
treebffba1626a2ffeab830ab888b0ac8b794e68f8db /applications/luci-app-tor/root/usr/share/rpcd/acl.d
parent7d14746ae88a83163a7e34daae70b264285bbe56 (diff)
luci-app-tor: Manage tor-hs onion services (#6476)
* luci-app-tor: Manage Onion services (tor-hs) The tor-hs packages provides Tor Onion (Hidden) Services. This is a good option to bypass NAT and have stable access to a router. Later once the main Tor package gains a support of a Proxy/Bridge configuration. We can add this to the same luci app as a different view. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-tor/root/usr/share/rpcd/acl.d')
-rw-r--r--applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json22
1 files changed, 22 insertions, 0 deletions
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..81bb9272bd
--- /dev/null
+++ b/applications/luci-app-tor/root/usr/share/rpcd/acl.d/luci-app-tor.json
@@ -0,0 +1,22 @@
+{
+ "luci-app-tor": {
+ "description": "Grant UCI access for luci-app-tor",
+ "read": {
+ "ubus": {
+ "tor_rpcd.sh": [
+ "list-hs"
+ ]
+ },
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ },
+ "write": {
+ "uci": [
+ "tor",
+ "tor-hs"
+ ]
+ }
+ }
+}