Bug 769016 - SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file 20111220005215.mp3.
Summary: SELinux is preventing /usr/sbin/httpd from 'create' accesses on the file 2011...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 16
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:ddca64d618db70f5047dd95c02f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-19 16:53 UTC by Chen_Min_Chin
Modified: 2012-03-15 15:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-15 15:13:43 UTC
Type: ---


Attachments (Terms of Use)

Description Chen_Min_Chin 2011-12-19 16:53:25 UTC
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;
:

Comment 1 Daniel Walsh 2011-12-19 18:26:11 UTC
Are you having apache download mp3 files to your homedir?  What path is it using?


Note You need to log in before you can comment on or make changes to this bug.