Bug 543855

Summary: SELinux is preventing googleearth-bin from loading /opt/google-earth/libminizip.so which requires text relocation.
Product: [Fedora] Fedora Reporter: phypsi+bugzilla
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, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5f34c8bccabfd02d04809616fc98da01a1963ea3e9eb6a87756e66d719212006
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-03 10:26: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 phypsi+bugzilla 2009-12-03 10:20:26 UTC
Summary:

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

Detailed Description:

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

Fix Command:

chcon -t textrel_shlib_t '/opt/google-earth/libminizip.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/libminizip.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-85.fc11
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   allow_execmod
Host Name                     (removed)
Platform                      Linux (removed) 2.6.30.9-90.fc11.i686.PAE #1 SMP Sat
                              Oct 17 11:24:32 EDT 2009 i686 i686
Alert Count                   2
First Seen                    Sun 01 Nov 2009 11:42:13 AM CET
Last Seen                     Sun 01 Nov 2009 11:42:32 AM CET
Local ID                      360d2d81-0a9f-4317-9d72-cd321a424be4
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1257072152.656:27): avc:  denied  { execmod } for  pid=4319 comm="googleearth-bin" path="/opt/google-earth/libminizip.so" dev=dm-0 ino=148140 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(1257072152.656:27): arch=40000003 syscall=125 success=no exit=-13 a0=a15000 a1=6000 a2=5 a3=bfca9b40 items=0 ppid=4050 pid=4319 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts0 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-85.fc11,allow_execmod,googleearth-bin,unconfined_t,usr_t,file,execmod
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-03 10:26:27 UTC

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