ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 30 - XK0-005 discussion

Report
Export

An administrator deployed a Linux server that is running a web application on port 6379/tcp.

SELinux is in enforcing mode based on organization policies.

The port is open on the firewall.

Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.

The administrator ran some commands that resulted in the following output:

Which of the following commands should be used to resolve the issue?

A.
semanage port -d -t http_port_t -p tcp 6379
Answers
A.
semanage port -d -t http_port_t -p tcp 6379
B.
semanage port -a -t http_port_t -p tcp 6379
Answers
B.
semanage port -a -t http_port_t -p tcp 6379
C.
semanage port -a http_port_t -p top 6379
Answers
C.
semanage port -a http_port_t -p top 6379
D.
semanage port -l -t http_port_tcp 6379
Answers
D.
semanage port -l -t http_port_tcp 6379
Suggested answer: B

Explanation:

The command semanage port -a -t http_port_t -p tcp 6379 adds a new port definition to the SELinux policy and assigns the type http_port_t to the port 6379/tcp. This allows the web application to run on this port and accept connections from users. This is the correct way to resolve the issue. The other options are incorrect because they either delete a port definition (-d), use the wrong protocol (top instead of tcp), or list the existing port definitions (-l). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 18: Securing Linux Systems, page 535.

asked 02/10/2024
Yogen Trikannad
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first