[bind10/f19] Fix some permissions related issues

Tomas Hozza thozza at fedoraproject.org
Tue Jun 4 13:33:59 UTC 2013


commit d96dad4a1fca25dee881c08e6c05d56d018470f6
Author: Tomas Hozza <thozza at redhat.com>
Date:   Tue Jun 4 15:17:27 2013 +0200

    Fix some permissions related issues
    
    - create /run/bind10 directory for bind10 PID file
    - set GID bit on /var/bind10 directory to prevent permissions issues (#970207)
    
    Signed-off-by: Tomas Hozza <thozza at redhat.com>

 bind10.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/bind10.spec b/bind10.spec
index 9422843..5204502 100644
--- a/bind10.spec
+++ b/bind10.spec
@@ -3,10 +3,11 @@
 %global b10libexecdir %{_libexecdir}/bind10
 %global b10datadir %{_datadir}/bind10
 %global b10localstatedir %{_localstatedir}/bind10
+%global b10piddir /run/bind10
 
 Name: bind10
 Version: 1.0.0
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: The Berkeley Internet Name Domain 10 (BIND10) DNS and DHCP suite
 
 License: ISC
@@ -103,6 +104,8 @@ install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_unitdir}/bind10.service
 mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/tmpfiles.d
 install -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/tmpfiles.d/bind10.conf
 
+mkdir -p ${RPM_BUILD_ROOT}%{b10piddir}
+
 %pre
 if [ "$1" -eq 1 ]; then
   groupadd -g 25 -f -r named >/dev/null 2>&1 || :;
@@ -152,7 +155,8 @@ fi;
 
 %{_sysconfdir}/tmpfiles.d/bind10.conf
 %{_unitdir}/bind10.service
-%attr(1775,root,named) %dir %{b10localstatedir}
+%attr(3775, root, named) %dir %{b10localstatedir}
+%attr(-, named, named) %dir %{b10piddir}
 %dir %{b10sysconfdir}
 %config(noreplace) %{b10sysconfdir}/cmdctl*
 %{_sbindir}/bind10
@@ -335,6 +339,10 @@ fi;
 %{_libdir}/libb10-dhcpsrv.so.*
 
 %changelog
+* Tue Jun 04 2013 Tomas Hozza <thozza at redhat.com> - 1.0.0-3
+- create /run/bind10 directory for bind10 PID file
+- set GID bit on /var/bind10 directory to prevent permission issues (#970207)
+
 * Tue Mar 26 2013 Adam Tkac <atkac redhat com> - 1.0.0-2
 - rebuild for ARM64 support
 


More information about the scm-commits mailing list