Bug 626115

Summary: SELinux is preventing /bin/bash "getattr" access on /bin/bash.
Product: [Fedora] Fedora Reporter: Daniel Stripes <dlstripes-fedorabugs>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5cd4760a36e01a5bd8ccd9b1a68c268af96c90686938c727727a3e1494bcf306
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-22 22:25:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Stripes 2010-08-22 01:27:40 UTC
Summary:

SELinux is preventing /bin/bash "getattr" access on /bin/bash.

Detailed Description:

[sh has a permissive type (boinc_project_t). This access was not denied.]

SELinux denied access requested by sh. It is not expected that this access is
required by sh 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
report.

Additional Information:

Source Context                system_u:system_r:boinc_project_t:s0
Target Context                system_u:object_r:shell_exec_t:s0
Target Objects                /bin/bash [ file ]
Source                        sh
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-1.fc13
Target RPM Packages           bash-4.1.7-1.fc13
Policy RPM                    selinux-policy-3.7.19-47.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.6-147.2.4.fc13.x86_64
                              #1 SMP Fri Jul 23 17:14:44 UTC 2010 x86_64 x86_64
Alert Count                   1
First Seen                    Sat 21 Aug 2010 09:24:34 PM EDT
Last Seen                     Sat 21 Aug 2010 09:24:34 PM EDT
Local ID                      5df0de19-e0c4-4ad4-8c2f-b20011fa1d99
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282440274.770:47323): avc:  denied  { getattr } for  pid=11465 comm="sh" path="/bin/bash" dev=dm-4 ino=1049138 scontext=system_u:system_r:boinc_project_t:s0 tcontext=system_u:object_r:shell_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1282440274.770:47323): arch=c000003e syscall=4 success=yes exit=0 a0=2895060 a1=7fff3773f050 a2=7fff3773f050 a3=8 items=0 ppid=11464 pid=11465 auid=4294967295 uid=491 gid=472 euid=491 suid=491 fsuid=491 egid=472 sgid=472 fsgid=472 tty=(none) ses=4294967295 comm="sh" exe="/bin/bash" subj=system_u:system_r:boinc_project_t:s0 key=(null)



Hash String generated from  catchall,sh,boinc_project_t,shell_exec_t,file,getattr
audit2allow suggests:

#============= boinc_project_t ==============
allow boinc_project_t shell_exec_t:file getattr;

Comment 1 Miroslav Grepl 2010-08-22 22:25:27 UTC

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