Bug 540555

Summary: SELinux is preventing songbird-bin from loading /opt/Songbird/components/sbMediaManager.so which requires text relocation.
Product: [Fedora] Fedora Reporter: Laurent Forthomme <forthommel>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, forthommel, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:2e911af73452549b063606b46447e8d2b4b8b32b960bc7b8fbf7889e662a89f8
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-23 17:08:41 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 Laurent Forthomme 2009-11-23 16:42:14 UTC
Summary:

SELinux is preventing songbird-bin from loading
/opt/Songbird/components/sbMediaManager.so which requires text relocation.

Detailed Description:

[SELinux is in permissive mode. This access was not denied.]

The songbird-bin application attempted to load
/opt/Songbird/components/sbMediaManager.so which requires text relocation. This
is a potential security problem. Most libraries do not need this permission.
Libraries are sometimes coded incorrectly and request this permission. The
SELinux Memory Protection Tests
(http://people.redhat.com/drepper/selinux-mem.html) web page explains how to
remove this requirement. You can configure SELinux temporarily to allow
/opt/Songbird/components/sbMediaManager.so to use relocation as a workaround,
until the library is fixed. Please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Allowing Access:

If you trust /opt/Songbird/components/sbMediaManager.so to run correctly, you
can change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/Songbird/components/sbMediaManager.so'" You must also change the default
file context files on the system in order to preserve them even on a full
relabel. "semanage fcontext -a -t textrel_shlib_t
'/opt/Songbird/components/sbMediaManager.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/Songbird/components/sbMediaManager.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:usr_t:s0
Target Objects                /opt/Songbird/components/sbMediaManager.so [ file
                              ]
Source                        songbird-bin
Source Path                   /opt/Songbird/songbird-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-80.fc11
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Permissive
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.29.6-217.2.16.fc11.i586 #1 SMP Mon Aug 24
                              17:01:46 EDT 2009 i686 i686
Alert Count                   1
First Seen                    Tue 01 Sep 2009 10:39:29 AM CEST
Last Seen                     Tue 01 Sep 2009 10:39:29 AM CEST
Local ID                      f8557b48-52b5-4328-912a-516282c53132
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1251794369.676:120): avc:  denied  { execmod } for  pid=6533 comm="songbird-bin" path="/opt/Songbird/components/sbMediaManager.so" dev=dm-0 ino=290374 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:usr_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1251794369.676:120): arch=40000003 syscall=125 success=yes exit=0 a0=19c6000 a1=32000 a2=5 a3=bfc5feb0 items=0 ppid=6526 pid=6533 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=2 comm="songbird-bin" exe="/opt/Songbird/songbird-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-80.fc11,allow_execmod,songbird-bin,unconfined_t,usr_t,file,execmod
audit2allow suggests:

#============= unconfined_t ==============
allow unconfined_t usr_t:file execmod;

Comment 1 Daniel Walsh 2009-12-23 17:08:41 UTC

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