Bug 550745 - SELinux is preventing googleearth-bin from loading /opt/google-earth/libcollada.so which requires text relocation.
Summary: SELinux is preventing googleearth-bin from loading /opt/google-earth/libcolla...
Keywords:
Status: CLOSED DUPLICATE of bug 538428
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:af65b9777ef...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-27 07:11 UTC by Hugo van der Kooij
Modified: 2009-12-27 12:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-27 12:28:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hugo van der Kooij 2009-12-27 07:11:21 UTC
Summary:

SELinux is preventing googleearth-bin from loading
/opt/google-earth/libcollada.so which requires text relocation.

Detailed Description:

The googleearth-bin application attempted to load
/opt/google-earth/libcollada.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/google-earth/libcollada.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/google-earth/libcollada.so to run correctly, you can change
the file context to textrel_shlib_t. "chcon -t textrel_shlib_t
'/opt/google-earth/libcollada.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/google-earth/libcollada.so'"

Fix Command:

chcon -t textrel_shlib_t '/opt/google-earth/libcollada.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/google-earth/libcollada.so [ file ]
Source                        googleearth-bin
Source Path                   /opt/google-earth/googleearth-bin
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.12-86.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.30.9-96.fc11.i686.PAE #1 SMP Tue Nov 3
                              23:41:33 EST 2009 i686 i686
Alert Count                   2
First Seen                    Sun 08 Nov 2009 13:19:15 CET
Last Seen                     Sun 08 Nov 2009 13:19:16 CET
Local ID                      767aaf07-39c9-4ec8-b16e-90d07bc801aa
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257682756.913:48): avc:  denied  { execmod } for  pid=7129 comm="googleearth-bin" path="/opt/google-earth/libcollada.so" dev=dm-0 ino=525933 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(1257682756.913:48): arch=40000003 syscall=125 success=no exit=-13 a0=3725000 a1=2f4000 a2=5 a3=bff6f470 items=0 ppid=6036 pid=7129 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts1 ses=1 comm="googleearth-bin" exe="/opt/google-earth/googleearth-bin" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



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

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

Comment 1 Daniel Walsh 2009-12-27 12:28:46 UTC

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


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