2008-09-05 Dan Williams <dcbw@redhat.com>

* src/nm-openvpn-service.c
		- (nm_openvpn_start_openvpn_binary): send --script-security=2 to allow
			the plugin's scripts to be run.  Requires OpenVPN 2.1-rc9 or later,
			distros with older versions should patch this out.



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4041 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2008-09-05 17:18:41 +00:00
parent a5a782991f
commit 814336ec8a
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-09-05 Dan Williams <dcbw@redhat.com>
* src/nm-openvpn-service.c
- (nm_openvpn_start_openvpn_binary): send --script-security=2 to allow
the plugin's scripts to be run. Requires OpenVPN 2.1-rc9 or later,
distros with older versions should patch this out.
2008-09-04 Dan Williams <dcbw@redhat.com>
* src/nm-openvpn-service.c

View file

@ -613,6 +613,13 @@ nm_openvpn_start_openvpn_binary (NMOpenvpnPlugin *plugin,
add_openvpn_arg (args, "--syslog");
add_openvpn_arg (args, "nm-openvpn");
/* Bash script security in the face; this option was added to OpenVPN 2.1-rc9
* and defaults to disallowing any scripts, a behavior change from previous
* versions.
*/
add_openvpn_arg (args, "--script-security");
add_openvpn_arg (args, "2");
/* Up script, called when connection has been established or has been restarted */
add_openvpn_arg (args, "--up");
add_openvpn_arg (args, NM_OPENVPN_HELPER_PATH);