| Summary: | SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory /home/ezra. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ezra Sharp <nicekiwi> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | dwalsh, hicham.haouari, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:2ec074b6ec2d07ab17c62d594891b5a6bd861e9d81f848659cd05f7ab33d0d56 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-04-19 19:39:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Setting up virtual hosts for apache, I set a virtual host documentRoot inside the home directory. resulting in 403 errors. Did you read the plugin? It told you what to do. |
SELinux is preventing /usr/sbin/httpd from 'search' accesses on the directory /home/ezra. ***** Plugin catchall_boolean (47.5 confidence) suggests ******************* If you want to allow httpd to read user content Then you must tell SELinux about this by enabling the 'httpd_read_user_content' boolean. Do setsebool -P httpd_read_user_content 1 ***** Plugin catchall_boolean (47.5 confidence) suggests ******************* If you want to allow httpd to read home directories Then you must tell SELinux about this by enabling the 'httpd_enable_homedirs' boolean. Do setsebool -P httpd_enable_homedirs 1 ***** Plugin catchall (6.38 confidence) suggests *************************** If you believe that httpd should be allowed search access on the ezra directory by default. Then you should report this as a bug. You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep httpd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:httpd_t:s0 Target Context unconfined_u:object_r:user_home_dir_t:s0 Target Objects /home/ezra [ dir ] Source httpd Source Path /usr/sbin/httpd Port <Unknown> Host (removed) Source RPM Packages httpd-2.2.17-10.fc15.1 Target RPM Packages Policy RPM selinux-policy-3.9.16-15.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38.2-9.fc15.x86_64 #1 SMP Wed Mar 30 16:55:57 UTC 2011 x86_64 x86_64 Alert Count 11 First Seen Wed 20 Apr 2011 11:20:32 NZST Last Seen Wed 20 Apr 2011 11:36:29 NZST Local ID 67e3c29c-8150-4ba9-8fdd-8548f8683d5f Raw Audit Messages type=AVC msg=audit(1303256189.634:236): avc: denied { search } for pid=23071 comm="httpd" name="ezra" dev=dm-3 ino=1703937 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_dir_t:s0 tclass=dir type=SYSCALL msg=audit(1303256189.634:236): arch=x86_64 syscall=stat success=no exit=EACCES a0=7ff41970de98 a1=7fff843fdc30 a2=7fff843fdc30 a3=7ff416acff10 items=0 ppid=1 pid=23071 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=httpd exe=/usr/sbin/httpd subj=system_u:system_r:httpd_t:s0 key=(null) Hash: httpd,httpd_t,user_home_dir_t,dir,search audit2allow #============= httpd_t ============== #!!!! This avc is allowed in the current policy allow httpd_t user_home_dir_t:dir search; audit2allow -R #============= httpd_t ============== #!!!! This avc is allowed in the current policy allow httpd_t user_home_dir_t:dir search;