Bug 153244
Summary: | SELinux warnings, maybe DHCP-related | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Florin Andrei <florin> |
Component: | dhcp | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | drepper, dwalsh |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Current | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-27 20:38:23 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: |
Description
Florin Andrei
2005-04-03 22:55:28 UTC
I'm sorry, i'm confused, i was thinking of another bug - this is not happening intermitently, it happens every single time, when the system boots up. Sorry for the mistake. There are also some SELinux messages when shutting down, but those happen after syslog is turned off, so i'm not sure how to capture them. BTW, SELinux is in "permissive" mode. Also see bug #153245 - they seem related. The problem here is that dhclient is attempting to run restorecon and it should not. The file labeling is being taken care of by SELinux. Restorecon has been removed from the latest rawhide dhclient scripts. dhcp-3.0.2-8 now has a workaround that avoids these SELinux problems. The problem was that when dhclient runs during boot in context 'system_u:object_r:dhcpc_exec_t' it cannot: o modify ANY configuration files (/etc/resolv.conf, /etc/yp.conf, /etc/ntp.conf, /etc/ntp/step-tickers) o run /sbin/restorecon o run /usr/sbin/hostname or /usr/sbin/domainname For some reason, when dhclient is run out of the boot sequence, eg. by root command "service network restart", then it is allowed to modify the configuration files and run restorecon and {host,domain}name. This may have something to do with the context of /etc/sysconfig/network-scripts/ifup-eth, from which dhclient is run, being 'system_u:object_r:etc_t' and not /sbin/ifup's system_u:object_r:sbin_t . The temporary workaround, until SELinux policy is fixed, is to # chcon system_u:object_r:sbin_t /sbin/dhclient* in the dhclient-3.0.2-8.*.rpm %post script. The "restorecon"s are also restored in this version and now work. dhcp-3.0.8 will be in rawhide20050419 - meanwhile, you can download it from: http://people.redhat.com/~jvdias/DHCP/FC4 |