Bug 643628
Summary: | SELinux is preventing /usr/sbin/dhcpd from binding to port 20364. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Craig Ringer <craig> | ||||||
Component: | selinux-policy | Assignee: | Daniel Walsh <dwalsh> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 14 | CC: | dwalsh, mgrepl | ||||||
Target Milestone: | --- | Keywords: | Reopened | ||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | setroubleshoot_trace_hash:9c4618d119d2083b8985ec07bc8ad78bb4a52e1b7463f7622108d3c3a0968293 | ||||||||
Fixed In Version: | selinux-policy-3.9.7-4.fc14 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2010-10-28 05:52:15 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
Craig Ringer
2010-10-16 14:41:09 UTC
Why is dhcpd trying to listen to 20364 port? Did you set up it? If so, the troubleshoot message tells you what to do. For example: semanage port -a -t dhcpd_port_t -p udp 20364 If I am wrong, please reopen the bug. The port selected is random each time an attempt to start dhcpd is made. As such, using semanage to permit that port won't have any effect. dhcpd is configured and works. There is no reference to non-default ports anywhere in its configuration (attached). Created attachment 454074 [details]
DHCPD configuration in use
Created attachment 454083 [details]
strace of dhcpd startup
The bind attempts happen early in dhcpd startup, not long after loading library files and locale messages, and before connecting to syslog or reading /etc/localtime. See attached strace output of starting dhcpd with the -f flag in a root shell obtained via "su" from the console user.
It's not clear what the purpose of these bind() calls are.
I think dhcpcd is implementing named functionality. We probably need to add corenet_dontaudit_udp_bind_all_reserved_ports(dhcpd_t) corenet_udp_bind_all_unreserved_ports(dhcpd_t) Fixed in selinux-policy-3.9.7-4.fc14 Miroslav add this to F13. selinux-policy-3.9.7-4.fc14 has been submitted as an update for Fedora 14. https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-4.fc14 Thanks folks. Anything that encourages users to keep SELinux in enforcing mode is a good thing. selinux-policy-3.9.7-4.fc14 has been pushed to the Fedora 14 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 selinux-policy'. You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-4.fc14 selinux-policy-3.9.7-4.fc14 has been pushed to the Fedora 14 stable repository. If problems still persist, please make note of it in this bug report. |