Question 200
Following lab verification, document the preventive or persistence-oriented procedure for: A test web daemon is configured to listen on TCP 8088 but SELinux blocks binding despite a matching firewall rule. Which practice is most suitable?
Explanation
Correct Answer
Verify port-label assignment and firewall exposure separately for nonstandard listener ports. This guards against recurrence of: SELinux port types control service bind permission independently of firewalld. Confirm the lab's final state by: `semanage port -l` lists 8088 for `http_port_t` and the daemon binds without the denial.
Incorrect Answers
Provision and rotate private keys under managed mode and ownership controls. That control is best suited to a separate scenario: A private SSH key is world-readable, causing security risk and sometimes authentication refusal. It is not the best safeguard for the current mechanism: SELinux port types control service bind permission independently of firewalld.
Check active zone, SELinux port permission and service listener together. That control is best suited to a separate scenario: An application uses a nonstandard TCP port and a student opens it in firewalld but forgets the active zone. It is not the best safeguard for the current mechanism: SELinux port types control service bind permission independently of firewalld.
Verify persistence and remove temporary diagnostic firewall permits. That control is best suited to a separate scenario: A firewall change is tested using only a runtime rule, but an administrator assumes it will be present after restart. It is not the best safeguard for the current mechanism: SELinux port types control service bind permission independently of firewalld.