CompTIA Linux+ XK0-006 (V8) Practice Question

A system administrator has just finished configuring a new service on a Linux server and confirmed it works correctly. To harden the system, the administrator enables SELinux and changes its mode to Enforcing using the setenforce 1 command. After this change, the new service fails to start, and access denial messages appear in /var/log/audit/audit.log. What is the primary function of SELinux Enforcing mode that is causing this behavior?

  • It automatically resets the standard file permissions of the service's files to be more restrictive.

  • It loads the security policy into the kernel but does not log or deny any actions.

  • It allows the action to proceed but logs a warning that the action violates the security policy.

  • It actively denies any action that violates the security policy and logs the denial.

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