You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openvpn/openvpn-script-security.patch

17 lines
727 B

--- openvpn-2.1_rc9/sample-scripts/openvpn.init.orig 2008-06-13 02:54:58.000000000 -0500
+++ openvpn-2.1_rc9/sample-scripts/openvpn.init 2008-08-13 13:51:46.000000000 -0500
@@ -151,7 +151,12 @@
. $bn.sh
fi
rm -f $piddir/$bn.pid
- $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work
+ # Handle backward compatibility, see Red Hat Bugzilla ID #458594
+ script_security=''
+ if [ -z "$( grep '^[[:space:]]*script-security[[:space:]]' $c )" ]; then
+ script_security="--script-security 2"
+ fi
+ $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work $script_security
if [ $? = 0 ]; then
successes=1
else