From 789cb6b6b7c6ad774122d65c9ac94d316cb9e3ff Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Aug 28 2006 14:05:37 +0000 Subject: Fix chcon for SELinux --- diff --git a/bind.spec b/bind.spec index 1e93b3a..e0ef7d3 100644 --- a/bind.spec +++ b/bind.spec @@ -524,7 +524,7 @@ for f in my.internal.zone.db slaves/my.slave.internal.zone.db slaves/my.ddns.int echo '@ in soa localhost. root 1 3H 15M 1W 1D ns localhost.' > sample/var/named/$f; done -/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.124 2006/08/22 11:01:33 stransky Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\ +/usr/bin/tail -n '+'`/bin/egrep -n '\\$Id: bind.spec,v 1.125 2006/08/28 14:05:37 dwalsh Exp $/+1/' | bc` bin/rndc/rndc.conf | sed '/Sample rndc configuration file./{p;i\ *\ * NOTE: you only need to create this file if it is to\ * differ from the following default contents: @@ -776,8 +776,8 @@ fi %post -n caching-nameserver if [ "$1" -gt 0 ]; then - /usr/bin/chcon system_u:object_r:named_conf_t /etc/named.caching-nameserver.conf >/dev/null 2>&1 || :; - /usr/bin/chcon system_u:object_r:named_conf_t /etc/named.rfc1912.zones >/dev/null 2>&1 || :; + /usr/bin/chcon -t named_conf_t /etc/named.caching-nameserver.conf >/dev/null 2>&1 || :; + /usr/bin/chcon -t named_conf_t /etc/named.rfc1912.zones >/dev/null 2>&1 || :; . /usr/sbin/bind-chroot-admin --sync; fi; :;