Bug 542955 - SELinux is preventing googleearth-bin from loading /opt/google-earth/libminizip.so which requires text relocation.
Summary: SELinux is preventing googleearth-bin from loading /opt/google-earth/libminiz...
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:b3ce2958bcb...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-01 10:22 UTC by Andrea Modesto Rossi
Modified: 2009-12-01 11:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-01 11:20:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Andrea Modesto Rossi 2009-12-01 10:22:11 UTC
Sommario:

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

Descrizione dettagliata:

[SELinux è in modalità permissiva. Questo accesso non è stato negato.]

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.

Abilitazione accesso in corso:

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'"

Comando fix:

chcon -t textrel_shlib_t '/opt/google-earth/libminizip.so'

Informazioni aggiuntive:

Contesto della sorgente       unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Contesto target               unconfined_u:object_r:usr_t:s0
Oggetti target                /opt/google-earth/libminizip.so [ file ]
Sorgente                      googleearth-bin
Percorso della sorgente       /opt/google-earth/googleearth-bin
Porta                         <Sconosciuto>
Host                          (removed)
Sorgente Pacchetti RPM        
Pacchetti RPM target          
RPM della policy              selinux-policy-3.6.12-83.fc11
Selinux abilitato             True
Tipo di policy                targeted
Modalità Enforcing           Permissive
Nome plugin                   allow_execmod
Host Name                     (removed)
Piattaforma                   Linux (removed) 2.6.30.8-64.fc11.i586 #1
                              SMP Fri Sep 25 04:30:19 EDT 2009 i686 i686
Conteggio avvisi              2
Primo visto                   sab 10 ott 2009 08:59:46 CEST
Ultimo visto                  sab 10 ott 2009 09:00:09 CEST
ID locale                     08707033-9e9e-440f-8cf6-51da1596a16a
Numeri di linea               

Messaggi Raw Audit            

node=(removed) type=AVC msg=audit(1255158009.288:33): avc:  denied  { execmod } for  pid=5276 comm="googleearth-bin" path="/opt/google-earth/libminizip.so" dev=dm-2 ino=87827 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(1255158009.288:33): arch=40000003 syscall=125 success=yes exit=0 a0=420000 a1=6000 a2=5 a3=bf993ff0 items=0 ppid=1 pid=5276 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) 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-83.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-01 11:20:38 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.