A Linux server web application runs on port 6379. SELinux is enforcing.
Which of the following commands should resolve the permission denied issue?
The Correct Answer is: b. semanage port -a -t http_port_t -p tcp 6379
When SELinux is enforcing, it restricts network ports based on policy types. If your web application is running on a non-standard port like 6379, you must explicitly allow it. The correct command uses semanage port -a to add port 6379, assigns it the http_port_t type (for web services), and specifies the TCP protocol. This change tells SELinux to allow HTTP services to bind to and use port 6379.
Why Other Options Are Incorrect:
Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.
You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams