summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-softether/root/usr/share
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-01-13 11:47:15 +0100
committerGitHub <noreply@github.com>2021-01-13 11:47:15 +0100
commit60c27aa0f7e1ee0536aa156a56b211e6817d2c77 (patch)
tree7372b3c4481329ba8a2729c3a4111c4b7c40d76e /applications/luci-app-softether/root/usr/share
parentbcb489a74dfd6d748fd7dd1f90b92f03a40ca17d (diff)
parentec5ce985fee50d4bcb02e70ae95be68cdfafc49e (diff)
Merge pull request #4665 from berenyibalazs/softether
luci-app-softether: add basic softether status page
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" ]
+ }
+ }
+ }
+}