removed dhclient %post now that SELinux policy is fixed; fix bug 155506
typo
This commit is contained in:
parent
0fae5fb3fb
commit
038d1b2c98
25
dhcp.spec
25
dhcp.spec
@ -2,7 +2,7 @@
|
|||||||
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
Summary: A DHCP (Dynamic Host Configuration Protocol) server and relay agent.
|
||||||
Name: dhcp
|
Name: dhcp
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 8
|
Release: 9
|
||||||
Epoch: 10
|
Epoch: 10
|
||||||
License: distributable
|
License: distributable
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@ -226,21 +226,6 @@ if [ "$1" -ge "1" ]; then
|
|||||||
fi
|
fi
|
||||||
exit 0
|
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
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README RELNOTES dhcpd.conf.sample
|
%doc README RELNOTES dhcpd.conf.sample
|
||||||
@ -279,8 +264,14 @@ fi;
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 21 2005 Jason Vas Dias <jvdias@redhat.com> 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 <jvdias@redhat.com> 10:3.0.2-8
|
* Mon Apr 18 2005 Jason Vas Dias <jvdias@redhat.com> 10:3.0.2-8
|
||||||
- Fix bugs 153244 & 155142:
|
- Fix bugs 153244 & 155143:
|
||||||
o restore dhclient-script 'restorecon's
|
o restore dhclient-script 'restorecon's
|
||||||
o give dhclient and dhclient-script an exec context of
|
o give dhclient and dhclient-script an exec context of
|
||||||
'system_u:object_r:sbin_t' that allows them to run
|
'system_u:object_r:sbin_t' that allows them to run
|
||||||
|
Loading…
Reference in New Issue
Block a user