]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
White-list pull-filter and script-security in interactive service
authorSelva Nair <selva.nair@gmail.com>
Tue, 22 Jan 2019 15:50:32 +0000 (10:50 -0500)
committerGert Doering <gert@greenie.muc.de>
Tue, 22 Jan 2019 16:02:17 +0000 (17:02 +0100)
This allows the Windows GUI to use these options on the command
line without triggering user authorization errors.

Useful for
(i) ignoring certain pushed options such as "route-method" which
could otherwise bypass the interactive service
(ii) enforcing a safer script-security setting from the GUI

See also:
https://github.com/OpenVPN/openvpn-gui/issues/235#issuecomment-456142928

Signed-off-by: Selva Nair <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <1548172232-11268-1-git-send-email-selva.nair@gmail.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18154.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit 0d94d433438f239ff7cf0749f765a503c698f5e8)

src/openvpnserv/validate.c

index 653bd12c593c0349a48d7b40a74bbdc0748ef1bb..d35938cf0f8b5d88dc4ea696838752e50b73c0e3 100644 (file)
@@ -44,6 +44,8 @@ static const WCHAR *white_list[] =
     L"setenv",
     L"service",
     L"verb",
+    L"pull-filter",
+    L"script-security",
 
     NULL                                /* last value */
 };