From 038d1b2c98619e5d11b94bea78cee03769748be9 Mon Sep 17 00:00:00 2001 From: jvdias Date: Thu, 21 Apr 2005 19:36:21 +0000 Subject: [PATCH] removed dhclient %post now that SELinux policy is fixed; fix bug 155506 typo --- dhcp.spec | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index ff11933..f6113b9 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -2,7 +2,7 @@ Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent. Name: dhcp Version: 3.0.2 -Release: 8 +Release: 9 Epoch: 10 License: distributable Group: System Environment/Daemons @@ -226,21 +226,6 @@ if [ "$1" -ge "1" ]; then fi exit 0 -%post -n dhclient -if [ "$1" -ge "1" ]; then - if [ -e /etc/selinux/config ]; then - . /etc/selinux/config - if [ "$SELINUX" = "Enforcing" ]; then - /usr/sbin/setenforce 0; - /usr/bin/chcon 'system_u:object_r:sbin_t' /sbin/dhclient - /usr/bin/chcon 'system_u:object_r:sbin_t' /sbin/dhclient-script - /usr/sbin/setenforce 1; - elif [ "$SELINUX" != "disabled" ]; then - /usr/bin/chcon 'root:object_r:bin_t' /sbin/dhclient - fi; - fi; -fi; - %files %defattr(-,root,root) %doc README RELNOTES dhcpd.conf.sample @@ -279,8 +264,14 @@ fi; %{_mandir}/man3/* %changelog +* Thu Apr 21 2005 Jason Vas Dias 10:3.0.2-9 +- bugs 153244 & 155143 are now fixed with SELinux policy; + autotrans now works for dhcpc_t, so restorecons are not required, + and dhclient runs OK under dhcpc_t with SELinux enforcing. +- fix bug 155506: 'predhclien' typo (emacs!). + * Mon Apr 18 2005 Jason Vas Dias 10:3.0.2-8 -- Fix bugs 153244 & 155142: +- Fix bugs 153244 & 155143: o restore dhclient-script 'restorecon's o give dhclient and dhclient-script an exec context of 'system_u:object_r:sbin_t' that allows them to run