XK0-005 · Question #10010
A Linux administrator is testing a new web application on a local laptop and consistently shows the following 403 errors in the laptop's logs" The web server starts properly, but an error is…
The correct answer is C. httpd_enable_homedirs = 1. The SELinux boolean 'httpd_enable_homedirs' controls whether the Apache web server (httpd) is allowed to access and serve content from user home directories (e.g., /home/username/public_html). When this boolean is off (0), SELinux blocks httpd from reading home directory…
Question
Options
- Ahttpd_can_network_connect = 1
- Bhttpd_enable_scripting = 1
- Chttpd_enable_homedirs = 1
- Dhttpd_enable_cgi = 1
How the community answered
(52 responses)- A8% (4)
- B12% (6)
- C77% (40)
- D4% (2)
Explanation
The SELinux boolean 'httpd_enable_homedirs' controls whether the Apache web server (httpd) is allowed to access and serve content from user home directories (e.g., /home/username/public_html). When this boolean is off (0), SELinux blocks httpd from reading home directory content, generating AVC denial entries in the audit log and causing 403 Forbidden errors for users. Enabling it with 'setsebool -P httpd_enable_homedirs 1' resolves this. The other booleans address different scenarios: 'httpd_can_network_connect' allows httpd to initiate outbound network connections, 'httpd_enable_scripting' is not a standard SELinux boolean, and 'httpd_enable_cgi' allows CGI script execution - none of which match the home directory access scenario described.
Topics
Community Discussion
No community discussion yet for this question.