Red Hat Bugzilla – Bug 468984
SELinux is preventing consoletype (consoletype_t) "read" to /var/lib/dhclient/dhclient-ra0.leases (dhcpc_state_t).
Last modified: 2008-12-06 23:15:32 EST
Created attachment 321787 [details]
Description of problem:
I just found this SELinux alert:
SELinux is preventing consoletype (consoletype_t) "read" to
Version-Release number of selected component (if applicable):
on an uptodate (2008-10-29) i386-rawhide system.
No idea. I had been playing with system-config-network during the time when this alert popped up.
Leaked file descriptor in dhclient
fcntl(fd, F_SETFD, FD_CLOEXEC)
after opening the descriptor
The read_client_leases() function uses open(2) rather than fopen(3), which is probably why I looked past it when adding in the FD_CLOEXEC stuff.
I've modified the patch to use O_CLOEXEC on open(2) calls and add the 'e' character to the mode string in fopen(3) calls. This works when you compile with -D_GNU_SOURCE.
While I'm pretty confident this fixes the problem you're seeing, I'm going to queue this build as an F-10 update.
I've built a new package as dhcp-4.0.0-31.fc10, here's the koji job:
I cannot create an F-10 update yet, so if you want to try out the packages now on rawhide, you can download them from the koji task page.
dhcp-4.0.0-31.fc10 has been submitted as an update for Fedora 10.
dhcp-4.0.0-32.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update dhcp'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/f10/FEDORA-2008-9915
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
*** Bug 472923 has been marked as a duplicate of this bug. ***
I tried to install the update listed in Comment #5 and terminal told me it found the update but did not install and when I tried the link given, I got a message saying the "path /updates/f10/FEDORA-2008-9915 cannot be found." Any suggestions?
dhcp-4.0.0-32.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.