Troubleshooting
Apache on an SELinux-enforcing RHEL server fails to start after an administrator adds Listen 8585 to its configuration. The error log reports a permission denied error when binding the port, and ausearch -m avc shows an httpd_t denial for name_bind on TCP port 8585. Which action BEST resolves the problem while keeping SELinux enforcing?
Show the answer
Correct answerA. Run semanage port -a -t http_port_t -p tcp 8585
The denial is httpd_t binding to a port that is not labeled http_port_t. Adding the port to that type with semanage port makes the change persistent and keeps SELinux enforcing. The httpd_can_network_connect boolean governs outbound connections, not binding a listening port.