summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-softether/root/usr/share
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-softether/root/usr/share')
-rw-r--r--applications/luci-app-softether/root/usr/share/luci/menu.d/luci-app-softether.json13
-rw-r--r--applications/luci-app-softether/root/usr/share/rpcd/acl.d/luci-app-softether.json12
2 files changed, 25 insertions, 0 deletions
diff --git a/applications/luci-app-softether/root/usr/share/luci/menu.d/luci-app-softether.json b/applications/luci-app-softether/root/usr/share/luci/menu.d/luci-app-softether.json
new file mode 100644
index 0000000000..c0ed09c20f
--- /dev/null
+++ b/applications/luci-app-softether/root/usr/share/luci/menu.d/luci-app-softether.json
@@ -0,0 +1,13 @@
+{
+ "admin/status/softether": {
+ "title": "SoftEther Status",
+ "order": 95,
+ "action": {
+ "type": "view",
+ "path": "softether-status"
+ },
+ "depends": {
+ "acl": [ "luci-app-softether" ]
+ }
+ }
+}
diff --git a/applications/luci-app-softether/root/usr/share/rpcd/acl.d/luci-app-softether.json b/applications/luci-app-softether/root/usr/share/rpcd/acl.d/luci-app-softether.json
new file mode 100644
index 0000000000..900e4bed78
--- /dev/null
+++ b/applications/luci-app-softether/root/usr/share/rpcd/acl.d/luci-app-softether.json
@@ -0,0 +1,12 @@
+{
+ "luci-app-softether": {
+ "description": "Grant access to softether management",
+ "read": {
+ "cgi-io": [ "exec" ],
+ "file": {
+ "/usr/libexec/vpncmd-call account-list": [ "exec" ],
+ "/usr/libexec/vpncmd-call account-status-get *": [ "exec" ]
+ }
+ }
+ }
+}