CompTIA Linux+ XK0-006 (V8) Practice Question

A Linux administrator is troubleshooting a monitoring agent that is constantly triggering SELinux AVC messages. After confirming the access is legitimate, the administrator runs the following command to generate a custom policy module:

# cat /var/log/audit/audit.log | audit2allow -M mon_agent

This produces the files mon_agent.pp and mon_agent.te in the working directory. To apply the new policy module immediately and ensure it remains in effect after future reboots-without altering the system's current enforcing mode-which command should the administrator run next?

  • semanage -i mon_agent.pp

  • setenforce 0

  • semodule -i mon_agent.pp

  • audit2allow -i mon_agent.te

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
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