Bug 624763

Summary: SELinux is preventing /bin/bash "getattr" access on /sbin/ldconfig.
Product: [Fedora] Fedora Reporter: Christian Joensson <christian.joensson>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: anto.trande, bruce, dominick.grift, dwalsh, james.brown, johannbg, mgrepl, renich
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:b3fb02411f64031afcf3f089bc179ad8b1d7f7204830294fe6568774dcff3cc3
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-23 15:32: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 Christian Joensson 2010-08-17 17:03:12 UTC
Summary:

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

Detailed Description:

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                unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0
                              .c1023
Target Context                system_u:object_r:ldconfig_exec_t:s0
Target Objects                /sbin/ldconfig [ file ]
Source                        sh
Source Path                   /bin/bash
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           bash-4.1.7-3.fc14
Target RPM Packages           glibc-2.12.90-7
Policy RPM                    selinux-policy-3.8.8-14.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35-3.fc14.i686.PAE #1 SMP
                              Fri Aug 6 19:41:17 UTC 2010 i686 i686
Alert Count                   18
First Seen                    Mon 16 Aug 2010 07:02:16 PM CEST
Last Seen                     Tue 17 Aug 2010 07:00:02 PM CEST
Local ID                      e734c8b3-741a-4b97-8338-45cd800028b6
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1282064402.908:46): avc:  denied  { getattr } for  pid=2544 comm="sh" path="/sbin/ldconfig" dev=dm-0 ino=2752785 scontext=unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0.c1023 tcontext=system_u:object_r:ldconfig_exec_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1282064402.908:46): arch=40000003 syscall=195 success=no exit=-13 a0=9c9f170 a1=bff7bbd0 a2=b28ff4 a3=9c9f170 items=0 ppid=2543 pid=2544 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="sh" exe="/bin/bash" subj=unconfined_u:unconfined_r:telepathy_msn_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,sh,telepathy_msn_t,ldconfig_exec_t,file,getattr
audit2allow suggests:

#============= telepathy_msn_t ==============
allow telepathy_msn_t ldconfig_exec_t:file getattr;

Comment 1 Daniel Walsh 2010-08-23 15:32:27 UTC

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