Bug 741119 - SELinux is preventing /usr/sbin/httpd from 'read' accesses on the directorio /home/desarrollo/workspace/ove/themes.
Summary: SELinux is preventing /usr/sbin/httpd from 'read' accesses on the directorio ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:7c3477bf755...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-25 16:19 UTC by Juan Francisco Fernández
Modified: 2011-09-26 07:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-26 07:18:23 UTC


Attachments (Terms of Use)

Description Juan Francisco Fernández 2011-09-25 16:19:05 UTC
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 };

Comment 1 Miroslav Grepl 2011-09-26 07:18:23 UTC
The alert tells you what to do.

Also 

# man httpd_selinux

will help you.


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