Bug 611497 - SELinux is preventing /bin/bash "getattr" access on /etc/rc.d/init.d/httpd.
Summary: SELinux is preventing /bin/bash "getattr" access on /etc/rc.d/init.d/httpd.
Status: CLOSED DUPLICATE of bug 611507
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
Whiteboard: setroubleshoot_trace_hash:e37ca2fd0c5...
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-05 12:21 UTC by mathepic
Modified: 2010-07-07 06:48 UTC (History)
2 users (show)

Clone Of:
Last Closed: 2010-07-07 06:48:45 UTC

Attachments (Terms of Use)

Description mathepic 2010-07-05 12:21:07 UTC

SELinux is preventing /bin/bash "getattr" access on /etc/rc.d/init.d/httpd.

Detailed Description:

SELinux denied access requested by gdm. It is not expected that this access is
required by gdm and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug

Additional Information:

Source Context                system_u:system_r:xdm_t:s0-s0:c0.c1023
Target Context                system_u:object_r:httpd_initrc_exec_t:s0
Target Objects                /etc/rc.d/init.d/httpd [ file ]
Source                        gdm
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-1.fc13
Target RPM Packages           httpd-2.2.15-1.fc13
Policy RPM                    selinux-policy-3.7.19-28.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux localhost.localdomain
                     #1 SMP Fri Jun 11
                              09:38:12 UTC 2010 x86_64 x86_64
Alert Count                   3
First Seen                    Sun 04 Jul 2010 10:00:51 PM EDT
Last Seen                     Mon 05 Jul 2010 07:52:54 AM EDT
Local ID                      2b3b4bc4-552b-4934-abf2-0228818cfefa
Line Numbers                  

Raw Audit Messages            

node=localhost.localdomain type=AVC msg=audit(1278330774.458:52): avc:  denied  { getattr } for  pid=1377 comm="gdm" path="/etc/rc.d/init.d/httpd" dev=sda3 ino=58662 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:httpd_initrc_exec_t:s0 tclass=file

node=localhost.localdomain type=SYSCALL msg=audit(1278330774.458:52): arch=c000003e syscall=4 success=no exit=-13 a0=1b6d130 a1=7fff447b62a0 a2=7fff447b62a0 a3=8 items=0 ppid=1 pid=1377 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gdm" exe="/bin/bash" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)

Hash String generated from  catchall,gdm,xdm_t,httpd_initrc_exec_t,file,getattr
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t httpd_initrc_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-07-07 06:48:45 UTC

*** This bug has been marked as a duplicate of bug 611507 ***

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