Bug 147926
| Summary: | dhclient-script creates new conf files with wrong selinux label | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ulrich Drepper <drepper> | ||||
| Component: | dhcp | Assignee: | Jason Vas Dias <jvdias> | ||||
| Status: | CLOSED ERRATA | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | rawhide | CC: | sundaram | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2005-09-04 23:54:47 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Ulrich Drepper
2005-02-13 01:26:26 UTC
Created attachment 111032 [details]
add chcon calls
Thanks - I have SELinux enabled on my FC3 & RHEL-4 test systems, not on my FC4 test system - this will now change. I'll make changes to restore the file contexts of configuration files changed by dhclient-script as you suggest, but we can't assume that /usr has been mounted when this script is run, so I'll use /sbin/restorecon instead of /usr/bin/chcon . Also, we can't assume the *.predhclient files have the correct context to start with, nor that when dhclient is run, the selinux policy has yet been configured, so after changing /etc/yp.conf, for example, I'll do: [ -x /sbin/restorecon ] && /sbin/restorecon /etc/yp.conf >/dev/null 2>&1 This bug is now fixed in dhcp-3.0.1-40_FC3 / dhcp-3.0.2-2 (FC4). |