Bug 167587
Summary: | When httpd is configured to listen on a port other than 80 or 8080 the service failes to start. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dave <d.h.hartman> |
Component: | selinux-policy-targeted | Assignee: | Daniel Walsh <dwalsh> |
Status: | CLOSED NOTABUG | QA Contact: | |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | CC: | sundaram |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-05 23:52:45 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
Dave
2005-09-05 23:36:01 UTC
This is not a bug. Fedora Core 4 is configured to use SELinux targeted policy by default which protects Apache from connecting to other ports. You need to enable the SELinux Apache boolean, httpd_can_network_connec=1 in /etc/selinux/targeted/booleans file and reboot the system or use system-config-securitylevel tool to set this. For more information about SELinux see the following documents which applies to FC4 also. http://fedora.redhat.com/docs/selinux-faq-fc3/ http://fedora.redhat.com/docs/selinux-apache-fc3/ If you require further help on this, feel free to post to the fedora-selinux list http://www.redhat.com/mailman/listinfo/fedora-selinux-list Instead of rebooting, do this: setsebool httpd_can_network_connec 1 That changes the boolean in runtime. Also change the Boolean in /etc/selinux/targeted/booleans, as from Comment #1, so that the change is picked up on next boot. Just in case, it's worth confirming that your initscript has the correct SELinux label: ls -Z /etc/init.d/httpd -rwxr-xr-x root root system_u:object_r:initrc_exec_t /etc/init.d/httpd This is on FC3. The key is the type of initrc_exec_t. If the type is different, you can run 'restorecon /etc/init.d/httpd'. Oops, Rahul and I both chopped a 't' off the Boolean: setsebool httpd_can_network_connect 1 setsebool -P httpd_can_network_connect 1 will make it permanant, ie change the running machine and add an entry to the booleans file. |