[zookeeper] Set file permissions on -server package to be in line with system defaults

tstclair tstclair at fedoraproject.org
Mon Jul 22 16:10:44 UTC 2013


commit f16f8e2dc36c88e89a099c9fade8f6f908ace6b5
Author: Timothy St. Clair <tstclair at redhat.com>
Date:   Mon Jul 22 11:10:02 2013 -0500

    Set file permissions on -server package to be in line with system
    defaults

 zookeeper.spec |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/zookeeper.spec b/zookeeper.spec
index 9742ae0..0a2e798 100644
--- a/zookeeper.spec
+++ b/zookeeper.spec
@@ -1,7 +1,7 @@
 %global _hardened_build 1
 Name:          zookeeper
 Version:       3.4.5
-Release:       9%{?dist}
+Release:       10%{?dist}
 Summary:       A high-performance coordination service for distributed applications
 #Group:         Development/Libraries
 License:       ASL 2.0 and BSD
@@ -353,19 +353,22 @@ getent passwd zookeeper >/dev/null || \
 %doc LICENSE.txt NOTICE.txt src/contrib/zkpython/README
 
 %files server
-%dir %{_sysconfdir}/zookeeper
-%ghost %config(noreplace) %{_sysconfdir}/zookeeper/zoo.cfg
-%{_sysconfdir}/zookeeper/zoo_sample.cfg
-%config(noreplace) %{_sysconfdir}/zookeeper/log4j.properties
+%attr(0755,root,root) %dir %{_sysconfdir}/zookeeper
+%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/zookeeper/zoo.cfg
+%attr(0644,root,root) %{_sysconfdir}/zookeeper/zoo_sample.cfg
+%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/zookeeper/log4j.properties
 
 %attr(0750,zookeeper,zookeeper) %dir %{_localstatedir}/log/zookeeper
-%attr(0750,zookeeper,zookeeper) %dir %{_sharedstatedir}/zookeeper
+%attr(0755,root,root) %dir %{_sharedstatedir}/zookeeper
 %attr(0750,zookeeper,zookeeper) %dir %{_sharedstatedir}/zookeeper/data
 %attr(0640,zookeeper,zookeeper) %ghost %{_sharedstatedir}/zookeeper/data/myid
 %attr(0750,zookeeper,zookeeper) %dir %{_sharedstatedir}/zookeeper/log
 %{_unitdir}/zookeeper.service
 
 %changelog
+* Mon Jun 22 2013 Timothy St. Clair <tstclair at redhat.com> - 3.4.5-10
+- update permissions to be in line with default policies
+
 * Mon Jul 22 2013 gil cattaneo <puntogil at libero.it> 3.4.5-9
 - removed not needed %%defattr (only required for rpm < 4.4)
 - removed not needed Group fields (new package guideline)


More information about the scm-commits mailing list