CompTIA Linux+ XK0-006 (V8) Practice Question

The security team has set SELinux to Enforcing on a production web server. You are deploying a custom HTTPS service that runs in the httpd_t domain and must listen on TCP port 8443, which is not currently included in the list for the http_port_t type. When you start the service, systemd logs an AVC denial for the 'bind' operation. You need to make a persistent policy change that allows the service to bind to this port without rebuilding the policy or disabling SELinux. Which single command should you run?

  • semanage port -a -t http_port_t -p tcp 8443

  • semanage fcontext -a -t httpd_sys_content_t "/srv/app(/.*)?"

  • semanage interface -a -t netif_t eth0

  • semanage boolean -m --on httpd_can_network_connect

CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot