summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json
diff options
context:
space:
mode:
authorSergey Ponomarev <stokito@gmail.com>2023-12-04 20:27:53 +0200
committerGitHub <noreply@github.com>2023-12-04 19:27:53 +0100
commit7d14746ae88a83163a7e34daae70b264285bbe56 (patch)
tree177683e67b8558a259f63ed19d5fb0043b14a1fc /applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json
parent9d746c75f4023bf3c4bcfe77eaa394fbf0188d95 (diff)
New app: luci-app-sshtunnel for SSH tunnels (#6424)
* luci-app-sshtunnel: SSH tunnels The app helps to configure SSH tunnels. You can also generate an SSH key and see known hosts. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Diffstat (limited to 'applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json')
-rw-r--r--applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json b/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json
new file mode 100644
index 0000000000..5dfb1405c7
--- /dev/null
+++ b/applications/luci-app-sshtunnel/root/usr/share/rpcd/acl.d/luci-app-sshtunnel.json
@@ -0,0 +1,20 @@
+{
+ "luci-app-sshtunnel": {
+ "description": "Grant UCI access for luci-app-sshtunnel",
+ "read": {
+ "file": {
+ "/root/.ssh/": [ "list" ],
+ "/root/.ssh/*.pub": [ "read" ],
+ "/root/.ssh/known_hosts": [ "read" ],
+ "/usr/bin/ssh-keygen": [ "list" ],
+ "/usr/bin/ssh-keygen *": [ "exec" ],
+ "/usr/bin/dropbearkey": [ "list" ],
+ "/usr/bin/dropbearkey *": [ "exec" ]
+ },
+ "uci": [ "sshtunnel" ]
+ },
+ "write": {
+ "uci": [ "sshtunnel" ]
+ }
+ }
+}