diff options
Diffstat (limited to 'applications/luci-app-vpnbypass/root/usr/share')
-rw-r--r-- | applications/luci-app-vpnbypass/root/usr/share/luci/menu.d/vpnbypass.json | 15 | ||||
-rw-r--r-- | applications/luci-app-vpnbypass/root/usr/share/rpcd/acl.d/luci-app-vpnbypass.json | 38 |
2 files changed, 26 insertions, 27 deletions
diff --git a/applications/luci-app-vpnbypass/root/usr/share/luci/menu.d/vpnbypass.json b/applications/luci-app-vpnbypass/root/usr/share/luci/menu.d/vpnbypass.json new file mode 100644 index 0000000000..0a56f9023d --- /dev/null +++ b/applications/luci-app-vpnbypass/root/usr/share/luci/menu.d/vpnbypass.json @@ -0,0 +1,15 @@ +{ + "admin/vpn/vpnbypass": { + "title": "VPN Bypass", + "order": 90, + "action": { + "type": "view", + "path": "vpnbypass/overview" + }, + "depends": { + "acl": [ + "luci-app-vpnbypass" + ] + } + } +} diff --git a/applications/luci-app-vpnbypass/root/usr/share/rpcd/acl.d/luci-app-vpnbypass.json b/applications/luci-app-vpnbypass/root/usr/share/rpcd/acl.d/luci-app-vpnbypass.json index 6dc1cb6a3f..3e3e06745c 100644 --- a/applications/luci-app-vpnbypass/root/usr/share/rpcd/acl.d/luci-app-vpnbypass.json +++ b/applications/luci-app-vpnbypass/root/usr/share/rpcd/acl.d/luci-app-vpnbypass.json @@ -2,39 +2,23 @@ "luci-app-vpnbypass": { "description": "Grant UCI and file access for luci-app-vpnbypass", "read": { - "cgi-io": [ - "exec" - ], - "file": { - "/usr/lib/opkg/status": [ - "read" - ], - "/etc/init.d/vpnbypass *": [ - "exec" - ], - "/etc/init.d/dnsmasq restart *": [ - "exec" - ], - "/usr/bin/grep *": [ - "exec" - ], - "/usr/sbin/grep *": [ - "exec" - ], - "/usr/sbin/iptables *": [ - "exec" + "ubus": { + "luci.vpnbypass": [ + "getInitList", + "getInitStatus" ] }, "uci": [ - "dhcp", - "vpnbypass" + "vpnbypass", + "dnsmasq" ] }, "write": { - "uci": [ - "dhcp", - "vpnbypass" - ] + "ubus": { + "luci.vpnbypass": [ + "setInitAction" + ] + } } } }
\ No newline at end of file |