Bug 550562 - SELinux is preventing /usr/lib/octagaplayer/octagaplayer-bin from loading /usr/lib/octagaplayer/libapplication.so which requires text relocation.
Summary: SELinux is preventing /usr/lib/octagaplayer/octagaplayer-bin from loading /us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:d9d7e5f9a2f...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-26 02:11 UTC by efreeti
Modified: 2010-01-08 20:11 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-66.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-01-08 20:11:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description efreeti 2009-12-26 02:11:23 UTC
Summary:

SELinux is preventing /usr/lib/octagaplayer/octagaplayer-bin from loading
/usr/lib/octagaplayer/libapplication.so which requires text relocation.

Detailed Description:

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

The octagaplayer-bi application attempted to load
/usr/lib/octagaplayer/libapplication.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
/usr/lib/octagaplayer/libapplication.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Allowing Access:

If you trust /usr/lib/octagaplayer/libapplication.so to run correctly, you can
change the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/usr/lib/octagaplayer/libapplication.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
'/usr/lib/octagaplayer/libapplication.so'"

Fix Command:

chcon -t textrel_shlib_t '/usr/lib/octagaplayer/libapplication.so'

Additional Information:

Source Context                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Target Context                unconfined_u:object_r:lib_t:s0
Target Objects                /usr/lib/octagaplayer/libapplication.so [ file ]
Source                        octagaplayer-bi
Source Path                   /usr/lib/octagaplayer/octagaplayer-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.32-56.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-166.fc12.i686.PAE #1 SMP Wed Dec 9
                              11:00:30 EST 2009 i686 i686
Alert Count                   6
First Seen                    Wed 16 Dec 2009 04:35:47 PM MYT
Last Seen                     Wed 16 Dec 2009 05:25:17 PM MYT
Local ID                      565675e7-9358-4263-935c-35a80e9c43f9
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1260955517.635:23762): avc:  denied  { execmod } for  pid=2013 comm="octagaplayer-bi" path="/usr/lib/octagaplayer/libapplication.so" dev=sda1 ino=209443 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1260955517.635:23762): arch=40000003 syscall=125 success=yes exit=0 a0=e67000 a1=ca5000 a2=5 a3=bfb6a870 items=0 ppid=1990 pid=2013 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm="octagaplayer-bi" exe="/usr/lib/octagaplayer/octagaplayer-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-56.fc12,allow_execmod,octagaplayer-bi,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

Comment 1 Daniel Walsh 2009-12-29 14:13:02 UTC
Execute the chcon command mentioned above.  Report this problem, to the ocagaplayer provider.


http://people.redhat.com/~drepper/selinux-mem.html

Fixed label in selinux-policy-3.6.32-65.fc12.noarch

Comment 2 Fedora Update System 2010-01-04 21:54:53 UTC
selinux-policy-3.6.32-66.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-66.fc12

Comment 3 Fedora Update System 2010-01-05 22:50:57 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0184

Comment 4 Fedora Update System 2010-01-08 20:05:43 UTC
selinux-policy-3.6.32-66.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.


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