Bug 770466 - SELinux is preventing /usr/sbin/httpd from 'open' accesses on the directory at-spi2.
Summary: SELinux is preventing /usr/sbin/httpd from 'open' accesses on the directory a...
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:87371bc9685...
: 784072 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-26 20:31 UTC by Roman Melihhov
Modified: 2012-12-15 19:07 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-15 19:06:49 UTC
Type: ---


Attachments (Terms of Use)

Description Roman Melihhov 2011-12-26 20:31:28 UTC
SELinux is preventing /usr/sbin/httpd from 'open' accesses on the directory at-spi2.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that httpd should be allowed open access on the at-spi2 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:
running drupal6 image import
Source Context                system_u:system_r:httpd_t:s0
Target Context                system_u:object_r:xdm_tmp_t:s0
Target Objects                at-spi2 [ dir ]
Source                        httpd
Source Path                   /usr/sbin/httpd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           httpd-2.2.21-1.fc15
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.16-48.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.40.6-0.fc15.x86_64 #1
                              SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64
Alert Count                   1
First Seen                    Mon 26 Dec 2011 10:30:25 PM EET
Last Seen                     Mon 26 Dec 2011 10:30:25 PM EET
Local ID                      4c6ca710-672a-4a70-be3b-b843c100ca8e

Raw Audit Messages
type=AVC msg=audit(1324931425.437:112): avc:  denied  { open } for  pid=2487 comm="httpd" name="at-spi2" dev=dm-1 ino=262192 scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:xdm_tmp_t:s0 tclass=dir


type=SYSCALL msg=audit(1324931425.437:112): arch=x86_64 syscall=open success=no exit=EACCES a0=7f874598df20 a1=90800 a2=7f873759fbb5 a3=7fffe30fbf70 items=0 ppid=1288 pid=2487 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,xdm_tmp_t,dir,open

audit2allow

#============= httpd_t ==============
allow httpd_t xdm_tmp_t:dir open;

audit2allow -R

#============= httpd_t ==============
allow httpd_t xdm_tmp_t:dir open;

Comment 1 Daniel Walsh 2011-12-29 17:57:36 UTC
Why is apache trying to read at-spi2 directory?

Comment 2 Miroslav Grepl 2012-12-15 19:07:11 UTC
*** Bug 784072 has been marked as a duplicate of this bug. ***


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