diff options
Diffstat (limited to 'applications/luci-app-strongswan-swanctl/root')
2 files changed, 44 insertions, 0 deletions
diff --git a/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json b/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json new file mode 100644 index 0000000000..d229869d64 --- /dev/null +++ b/applications/luci-app-strongswan-swanctl/root/usr/share/luci/menu.d/luci-app-strongswan-swanctl.json @@ -0,0 +1,28 @@ +{ + "admin/vpn/strongswan-swanctl": { + "title": "strongSwan IPsec", + "order": 90, + "action": { + "type": "view", + "path": "strongswan-swanctl/swanctl" + }, + "depends": { + "acl": [ + "luci-app-strongswan-swanctl" + ] + } + }, + "admin/status/strongswan": { + "title": "strongSwan IPsec", + "order": 90, + "action": { + "type": "view", + "path": "strongswan-swanctl/status" + }, + "depends": { + "acl": [ + "luci-app-strongswan-swanctl" + ] + } + } +} diff --git a/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json b/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json new file mode 100644 index 0000000000..d3b44a27a2 --- /dev/null +++ b/applications/luci-app-strongswan-swanctl/root/usr/share/rpcd/acl.d/luci-app-strongswan-swanctl.json @@ -0,0 +1,16 @@ +{ + "luci-app-strongswan-swanctl": { + "description": "Grant access to luci-app-strongswan-swanctl", + "read": { + "file": { + "/usr/sbin/swanmon version": [ "exec" ], + "/usr/sbin/swanmon stats": [ "exec" ], + "/usr/sbin/swanmon list-sas": [ "exec" ] + }, + "uci": [ "ipsec" ] + }, + "write": { + "uci": [ "ipsec" ] + } + } +} |