Bug 550589 - SELinux is preventing /usr/local/google-earth/googleearth-bin from loading /usr/local/google-earth/libminizip.so which requires text relocation.
Summary: SELinux is preventing /usr/local/google-earth/googleearth-bin from loading /u...
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:820b49937bb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-26 08:22 UTC by Bohdan Koudelka
Modified: 2010-01-08 20:11 UTC (History)
3 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:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Bohdan Koudelka 2009-12-26 08:22:35 UTC
Souhrn:

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

Podrobný popis:

The googleearth-bin application attempted to load
/usr/local/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
/usr/local/google-earth/libminizip.so to use relocation as a workaround, until
the library is fixed. Please file a bug report.

Povolení přístupu:

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

Příkaz pro opravu:

chcon -t textrel_shlib_t '/usr/local/google-earth/libminizip.so'

Další informace:

Kontext zdroje                unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Kontext cíle                 system_u:object_r:lib_t:s0
Objekty cíle                 /usr/local/google-earth/libminizip.so [ file ]
Zdroj                         googleearth-bin
Cesta zdroje                  /usr/local/google-earth/googleearth-bin
Port                          <Neznámé>
Počítač                    (removed)
RPM balíčky zdroje          
RPM balíčky cíle           
RPM politiky                  selinux-policy-3.6.32-59.fc12
Selinux povolen               True
Typ politiky                  targeted
Vynucovací režim            Enforcing
Název zásuvného modulu     allow_execmod
Název počítače            (removed)
Platforma                     Linux (removed) 2.6.31.9-174.fc12.i686 #1 SMP
                              Mon Dec 21 06:24:20 UTC 2009 i686 i686
Počet upozornění           3
Poprvé viděno               So 26. prosinec 2009, 00:21:39 CET
Naposledy viděno             So 26. prosinec 2009, 09:16:30 CET
Místní ID                   9d3c8d77-2608-4daf-b36c-6776c5bd6ec8
Čísla řádků              

Původní zprávy auditu      

node=(removed) type=AVC msg=audit(1261815390.747:26): avc:  denied  { execmod } for  pid=2089 comm="googleearth-bin" path="/usr/local/google-earth/libminizip.so" dev=dm-0 ino=132460 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1261815390.747:26): arch=40000003 syscall=125 success=no exit=-13 a0=850000 a1=6000 a2=5 a3=bfa8cc50 items=0 ppid=2078 pid=2089 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=pts1 ses=1 comm="googleearth-bin" exe="/usr/local/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.32-59.fc12,allow_execmod,googleearth-bin,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

Comment 1 Miroslav Grepl 2009-12-28 12:39:32 UTC
Execute 

# chcon -t textrel_shlib_t /usr/local/google-earth/*.so

Will fix.


You could report a bug to google to fix the way they build their libraries.

This link

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

explains the access.

Comment 3 Daniel Walsh 2009-12-29 23:27:39 UTC
Fixed in selinux-policy-3.6.32-65.fc12.noarch

Comment 4 Fedora Update System 2010-01-04 21:54:57 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 5 Fedora Update System 2010-01-05 22:51:02 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 6 Fedora Update System 2010-01-08 20:05:47 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.