rpms/unbound/EL-5 unbound.init,1.3,1.4 unbound.spec,1.6,1.7

Paul Wouters pwouters at fedoraproject.org
Wed May 20 16:00:11 UTC 2009


Author: pwouters

Update of /cvs/extras/rpms/unbound/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2306

Modified Files:
	unbound.init unbound.spec 
Log Message:
* Wed May 20 2009 Paul Wouters <paul at xelerance.com> - 1.2.1
- Upgraded to 1.2.1
- Properly drop group privs
- Fix so unbound starts from init scripts properly with
  unbound-remote: yes
- initscript checks for root group in pem/key files and changed
  these to group unbound



Index: unbound.init
===================================================================
RCS file: /cvs/extras/rpms/unbound/EL-5/unbound.init,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- unbound.init	20 May 2009 15:43:06 -0000	1.3
+++ unbound.init	20 May 2009 15:59:40 -0000	1.4
@@ -46,10 +46,20 @@ start() {
 	[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled && \
 	    [ -x /sbin/restorecon ] && /sbin/restorecon /etc/unbound/*
 	echo
+    else
+	# old init script created these as root instead of unbound.
+	if [ -G /etc/unbound/unbound_control.key ]
+	then
+	    chgrp unbound /etc/unbound/unbound_*key /etc/unbound/unbound_*pem
+	    [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled && \
+		[ -x /sbin/restorecon ] && /sbin/restorecon /etc/unbound/*
+	    echo
+	fi
     fi
 
     echo -n $"Starting unbound: "
 
+
     # if not running, start it up here
     daemon --pidfile=$pidfile $exec
     retval=$?


Index: unbound.spec
===================================================================
RCS file: /cvs/extras/rpms/unbound/EL-5/unbound.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- unbound.spec	20 May 2009 15:43:06 -0000	1.6
+++ unbound.spec	20 May 2009 15:59:40 -0000	1.7
@@ -153,6 +153,8 @@ fi
 - Properly drop group privs
 - Fix so unbound starts from init scripts properly with
   unbound-remote: yes
+- initscript checks for root group in pem/key files and changed
+  these to group unbound
 
 * Sun Feb  8 2009 Paul Wouters <paul at xelerance.com - 1.2.0-4
 - Not my best day, fixed the missing buildroot.




More information about the scm-commits mailing list