From e611298d9017c8ff7bb1235291b581cfeec1e1e3 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Oct 25 2009 11:13:28 +0000 Subject: Added script_security initialisation in initscript (#458594 #c20) --- diff --git a/openvpn-script-security.patch b/openvpn-script-security.patch index 6c38b44..515a418 100644 --- a/openvpn-script-security.patch +++ b/openvpn-script-security.patch @@ -1,11 +1,12 @@ --- 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,11 @@ +@@ -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 3" + fi diff --git a/openvpn.spec b/openvpn.spec index 8b68d90..e936b2f 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -4,7 +4,7 @@ Name: openvpn Version: 2.1 -Release: 0.29%{?prerelease:.%{prerelease}}%{?dist} +Release: 0.30%{?prerelease:.%{prerelease}}%{?dist} Summary: A full-featured SSL VPN solution URL: http://openvpn.net/ #Source0: http://openvpn.net/beta/%{name}-%{version}%{?prerelease:_%{prerelease}}.tar.gz @@ -168,6 +168,9 @@ fi %config %dir %{_sysconfdir}/%{name}/ %changelog +* Sun Oct 25 2009 Robert Scheck 2.1-0.30 +- Added script_security initialisation in initscript (#458594 #c20) + * Sat Nov 29 2008 Robert Scheck 2.1-0.29 - Update to 2.1_rc15