CompTIA Linux+ XK0-005 (v7) Practice Question

During post-deployment testing of a new reporting service, the administrator observes repeated AVC denial messages in /var/log/audit/audit.log similar to:

avc: denied { write } for pid=1234 comm="httpd" name="reports" scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:default_t:s0 tclass=dir

Standard UNIX permissions on /var/www/html/reports confirm that the account running the web service has write access, yet the application still fails to generate report files. On a system where SELinux is in enforcing mode, which single command should the administrator run next to inspect whether an incorrect file label is causing the problem?

  • ps auxZ

  • ls -Z /var/www/html/reports

  • getsebool -a

  • sestatus

CompTIA Linux+ XK0-005 (v7)
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.

SAVE $47
$390.00 $343.00
Bash, the Crucial Exams Chat Bot
AI Bot