While troubleshooting an access denial on an SELinux-enforcing web server, you run:
# ls -Z /var/www/html/index.html
system_u:object_r:admin_home_t:s0 /var/www/html/index.html
The HTTPD daemon runs in the httpd_t domain. Which element of the displayed security context most directly explains why the web server cannot read the file?
The output of ls -Z is formatted as SELinux-user:role:type:level. Access decisions in the targeted policy are driven mainly by Type Enforcement rules that match the process domain against the object type. The file is labeled admin_home_t, a type intended for user-home data; the httpd_t domain is only allowed to read types such as httpd_sys_content_t. Because no rule permits httpd_t to read objects of type admin_home_t, the read request is denied. The SELinux user (system_u), role (object_r), and MLS sensitivity (s0) are irrelevant to this denial under the default targeted policy, so they are not the root cause.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the SELinux context structure?
Open an interactive chat with Bash
Why does the type admin_home_t block access for httpd_t?
Open an interactive chat with Bash
How can you fix the access problem caused by admin_home_t?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Security
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .