From 23b1ff273850869674b1cd359d510855c84c5821 Mon Sep 17 00:00:00 2001 From: jvdias Date: Fri, 14 Jan 2005 18:03:51 +0000 Subject: [PATCH] fix bugs 143438, 143744 --- bind.spec | 10 ++++++++-- named.init | 11 +++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/bind.spec b/bind.spec index 52baa56..1137c4f 100644 --- a/bind.spec +++ b/bind.spec @@ -25,7 +25,7 @@ Patch9: bind-9.3.0-missing-dnssec-tools.patch Url: http://www.isc.org/products/BIND/ Buildroot: %{_tmppath}/%{name}-root Version: 9.3.0 -Release: 1 +Release: 2 Epoch: 22 BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar Requires(pre,preun): shadow-utils @@ -342,7 +342,8 @@ fi /sbin/ldconfig %clean -rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version} +rm -rf ${RPM_BUILD_ROOT} +# ${RPM_BUILD_DIR}/%{name}-%{version} %post libs -p /sbin/ldconfig @@ -406,6 +407,11 @@ rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version} %doc doc/draft doc/rfc %changelog +* Tue Jan 11 2005 Jason Vas Dias - 22:9.3.0-2 +- Fix bug 143438: named.init will now make correct ownership of $ROOTDIR/var/named +- based on 'named_write_master_zones' SELinux boolean. +- Fix bug 143744: dig & nsupdate IPv6 timeout (dup of 140528) + * Mon Nov 29 2004 Jason Vas Dias - 9.3.0-1 - Upgrade BIND to 9.3.0 in Rawhide / FC4 (bugs 134529, 133654...) diff --git a/named.init b/named.init index eefede5..ccc2365 100755 --- a/named.init +++ b/named.init @@ -42,6 +42,17 @@ start() { cp -fp /etc/localtime ${ROOTDIR}/etc/localtime fi; fi + if [ -e /etc/selinux/config ]; then + . /etc/selinux/config + if [ "$SELINUXTYPE" != "" ] && [ -d /etc/selinux/${SELINUXTYPE} ] && [ -e /etc/selinux/${SELINUXTYPE}/booleans ]; then + . /etc/selinux/${SELINUXTYPE}/booleans + if [ "$named_write_master_zones" -eq 1 ] ; then + /bin/chown -f --from=root:named named:named $ROOTDIR/var/named + elif [ "$named_write_master_zones" -eq 0 ] ; then + /bin/chown -f --from=named:named root:named $ROOTDIR/var/named + fi; + fi; + fi; conf_ok=0; if [ -x /usr/sbin/named-checkconf ] && /usr/sbin/named-checkconf $ckcf_options; then conf_ok=1;