CompTIA Linux+ XK0-006 (V8) Practice Question

While troubleshooting a custom backup script on a CentOS Stream 9 host, you decide to put SELinux into permissive mode so the script can run but you can still see what would have been blocked. After running:

# setenforce 0

which outcome should you expect, and why is this useful when building a custom policy for the script?

  • SELinux continues to label objects and logs AVC denial messages but does not block the operations, letting the script run while you later feed the logged denials to tools such as audit2allow.

  • SELinux stops enforcing only network-related rules; file-system rules are still enforced so the script will continue to fail and generate partial AVC logs.

  • SELinux stops enforcing and stops auditing, so no AVC records are generated; this makes policy generation impossible.

  • SELinux unloads every policy module, removes existing file labels, and requires a complete filesystem relabel after the next reboot.

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