Question 420
A lab administrator is preparing to fix: A web server must listen on TCP 8081, but SELinux refuses the bind despite an open firewall rule. Which proposed operation addresses that specific need?
Explanation
Correct Answer
The change that addresses the reported condition is to associate the approved custom port with the correct SELinux service port type. The host problem is: A web server must listen on TCP 8081, but SELinux refuses the bind despite an open firewall rule. The supporting evidence is to inspect SELinux AVC records and the permitted http_port_t port list. Check success by verifying that the server binds to TCP 8081 in enforcing mode and only authorized network traffic passes. The fix should be persistent where the task requires it.
Incorrect Answers
Set an appropriate umask in the correct user or system environment. The check concerns an appropriate umask in the correct user or system environment, not confirming that associate the approved custom port with the correct SELinux service port type.
Add the authorized port permanently and reload the correct firewall zone. This assesses add the authorized port permanently and reload the correct firewall zone; it does not determine the reported condition—a web server must listen on TCP 8081, but SELinux refuses the bind despite an open firewall rule.
Enable the narrowly appropriate SELinux Boolean persistently if the use case warrants it. The case-specific requirement is confirming that associate the approved custom port with the correct SELinux service port type, which that option does not establish.