From f1ade682c4e3243cf404a9c51fb002d1914e53c5 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Wed, 1 Oct 2008 22:38:30 +0000 Subject: [PATCH] - Make sure /etc/resolv.conf has restorecon run on it (#451560) --- dhclient-script | 4 ++++ dhcp.spec | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/dhclient-script b/dhclient-script index ad7799e..36ca76e 100755 --- a/dhclient-script +++ b/dhclient-script @@ -93,6 +93,10 @@ make_resolv_conf() { change_resolv_conf ${rscf} rm -f ${rscf} + + if [ -x /sbin/restorecon ]; then + /sbin/restorecon /etc/resolv.conf >/dev/null 2>&1 + fi fi } diff --git a/dhcp.spec b/dhcp.spec index cc6e828..71d8f2e 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -4,7 +4,7 @@ Summary: DHCP (Dynamic Host Configuration Protocol) server and relay agent Name: dhcp Version: 4.0.0 -Release: 28%{?dist} +Release: 29%{?dist} # NEVER CHANGE THE EPOCH on this package. The previous maintainer (prior to # dcantrell maintaining the package) made incorrect use of the epoch and # that's why it is at 12 now. It should have never been used, but it was. @@ -445,6 +445,9 @@ fi %{_libdir}/libdhcp4client.so %changelog +* Wed Oct 01 2008 David Cantrell - 12:4.0.0-29 +- Make sure /etc/resolv.conf has restorecon run on it (#451560) + * Tue Sep 30 2008 David Cantrell - 12:4.0.0-28 - Forgot to actually include (#438149)