diff options
author | Bill Nottingham <notting@redhat.com> | 2007-04-16 22:21:51 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2007-04-16 22:21:51 +0000 |
commit | ea8d97872e4b238f57fb1d02a203b6c356ff5102 (patch) | |
tree | e4dc100ea05a954bf3580b19afafad49c09e743e | |
parent | ca5bd7279c61f0b7dd5083d9ffab85fc2e0858ba (diff) | |
download | initscripts-ea8d97872e4b238f57fb1d02a203b6c356ff5102.tar initscripts-ea8d97872e4b238f57fb1d02a203b6c356ff5102.tar.gz initscripts-ea8d97872e4b238f57fb1d02a203b6c356ff5102.tar.bz2 initscripts-ea8d97872e4b238f57fb1d02a203b6c356ff5102.tar.xz initscripts-ea8d97872e4b238f57fb1d02a203b6c356ff5102.zip |
restore file context on /etc/resolv.conf (#230776, <dwalsh@redhat.com>)
-rw-r--r-- | sysconfig/network-scripts/network-functions | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 9ef2134c..82dd05dd 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -434,6 +434,7 @@ change_resolv_conf () (echo "$s" > /etc/resolv.conf;) >/dev/null 2>&1; r=$? if [ $r -eq 0 ]; then + [ -x /sbin/restorecon ] && /sbin/restorecon /etc/resolv.conf >/dev/null 2>&1 # reset the correct context logger -p local7.notice -t "NET" -i "$0 : updated /etc/resolv.conf"; [ -e /var/lock/subsys/nscd ] && /usr/sbin/nscd -i hosts; # invalidate cache fi; |