| Summary: | SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file 20111220005215.mp3. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Chen_Min_Chin <tcfxfzoi> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | dominick.grift, dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i686 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:ddca64d618db70f5047dd95c02f0fe9d1d5f1b147fe927838eadaa2f46cf216c | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-15 15:13:43 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Are you having apache download mp3 files to your homedir? What path is it using? |
libreport version: 2.0.8 executable: /usr/bin/python hashmarkername: setroubleshoot kernel: 3.1.5-6.fc16.i686.PAE reason: SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file 20111220005215.mp3. time: Tue 20 Dec 2011 12:52:52 AM CST description: :SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file 20111220005215.mp3. : :***** Plugin catchall (100. confidence) suggests *************************** : :If you believe that httpd should be allowed create access on the 20111220005215.mp3 file 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 system_u:object_r:user_home_t:s0 :Target Objects 20111220005215.mp3 [ file ] :Source httpd :Source Path /usr/sbin/httpd :Port <Unknown> :Host (removed) :Source RPM Packages httpd-2.2.21-1.fc16 :Target RPM Packages :Policy RPM selinux-policy-3.10.0-64.fc16 :Selinux Enabled True :Policy Type targeted :Enforcing Mode Enforcing :Host Name (removed) :Platform Linux (removed) 3.1.5-6.fc16.i686.PAE : #1 SMP Thu Dec 15 16:19:31 UTC 2011 i686 i686 :Alert Count 1 :First Seen Tue 20 Dec 2011 12:52:15 AM CST :Last Seen Tue 20 Dec 2011 12:52:15 AM CST :Local ID 79ce43de-b040-4b9e-b17c-4f6e6c7bbce6 : :Raw Audit Messages :type=AVC msg=audit(1324313535.535:113): avc: denied { create } for pid=4716 comm="httpd" name="20111220005215.mp3" scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:user_home_t:s0 tclass=file : : :type=SYSCALL msg=audit(1324313535.535:113): arch=i386 syscall=open success=no exit=EACCES a0=2206a774 a1=241 a2=1b6 a3=2206a774 items=0 ppid=3200 pid=4716 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,file,create : :audit2allow : :#============= httpd_t ============== :allow httpd_t user_home_t:file create; : :audit2allow -R : :#============= httpd_t ============== :allow httpd_t user_home_t:file create; :