| Summary: | SELinux is preventing /usr/sbin/httpd from 'read' accesses on the directorio /home/desarrollo/workspace/ove/themes. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Juan Francisco Fernández <juanfr> |
| 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: | rawhide | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:7c3477bf755e606fc905380c1742a3670e9b3557bff03c2b3672c302953713ae | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-09-26 07:18:23 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The alert tells you what to do. Also # man httpd_selinux will help you. |
SELinux is preventing /usr/sbin/httpd from 'read' accesses on the directorio /home/desarrollo/workspace/ove/themes. ***** Plugin catchall_boolean (89.3 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 (11.6 confidence) suggests *************************** If you believe that httpd should be allowed read access on the themes 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_t:s0 Target Objects /home/desarrollo/workspace/ove/themes [ dir ] Source httpd Source Path /usr/sbin/httpd Port <Desconocido> Host (removed) Source RPM Packages httpd-2.2.21-1.fc15 Target RPM Packages Policy RPM selinux-policy-3.9.16-38.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 2.6.40.4-5.fc15.i686.PAE #1 SMP Tue Aug 30 14:43:52 UTC 2011 i686 i686 Alert Count 1 First Seen dom 25 sep 2011 18:20:02 CEST Last Seen dom 25 sep 2011 18:20:02 CEST Local ID 0e2beeab-a69a-495a-b91f-3e589b5240a6 Raw Audit Messages type=AVC msg=audit(1316967602.713:120): avc: denied { read } for pid=7773 comm="httpd" name="themes" dev=dm-2 ino=5771624 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir type=AVC msg=audit(1316967602.713:120): avc: denied { open } for pid=7773 comm="httpd" name="themes" dev=dm-2 ino=5771624 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir type=SYSCALL msg=audit(1316967602.713:120): arch=i386 syscall=open success=yes exit=EAGAIN a0=2223ab5c a1=98800 a2=543a07c a3=0 items=0 ppid=7767 pid=7773 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 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_t,dir,read audit2allow #============= httpd_t ============== #!!!! This avc can be allowed using the boolean 'httpd_read_user_content' allow httpd_t user_home_t:dir { read open }; audit2allow -R #============= httpd_t ============== #!!!! This avc can be allowed using the boolean 'httpd_read_user_content' allow httpd_t user_home_t:dir { read open };