From cc01770fa1cf09b729dd931df77b149d1b20d2ef Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 20 Jan 2020 19:16:59 +0100 Subject: luci-app-openvpn: allow and restrict file uploads to /etc/openvpn/ Signed-off-by: Jo-Philipp Wich --- .../root/usr/share/rpcd/acl.d/luci-app-openvpn.json | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 applications/luci-app-firewall/root/usr/share/rpcd/acl.d/luci-app-openvpn.json (limited to 'applications/luci-app-firewall/root/usr/share/rpcd') diff --git a/applications/luci-app-firewall/root/usr/share/rpcd/acl.d/luci-app-openvpn.json b/applications/luci-app-firewall/root/usr/share/rpcd/acl.d/luci-app-openvpn.json new file mode 100644 index 000000000..bc9d8e184 --- /dev/null +++ b/applications/luci-app-firewall/root/usr/share/rpcd/acl.d/luci-app-openvpn.json @@ -0,0 +1,11 @@ +{ + "luci-app-openvpn": { + "description": "Grant file upload access to /etc/openvpn", + "write": { + "cgi-io": [ "upload" ], + "file": { + "/etc/openvpn/*": [ "write" ] + } + } + } +} -- cgit v1.2.3