Bug 562010

Summary: SELinux is preventing /usr/autodesk/maya2010-x64/bin/maya.bin from loading /usr/autodesk/maya2010-x64/lib/libDynSlice.so which requires text relocation.
Product: [Fedora] Fedora Reporter: Edgard Antonio <edgard_caliman>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, edgard_caliman, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:237cea80d270224200cff29adcfa9cb826033ff673bccaf01933b23f8f5bc7fb
Fixed In Version: selinux-policy-3.6.32-89.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-20 00:21:30 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 Edgard Antonio 2010-02-04 23:31:08 UTC
Sumário:

SELinux is preventing /usr/autodesk/maya2010-x64/bin/maya.bin from loading
/usr/autodesk/maya2010-x64/lib/libDynSlice.so which requires text relocation.

Descrição detalhada:

[maya.bin tem um tipo permissivo (unconfined_execmem_t). Esse acesso não foi
negado.]

The maya.bin application attempted to load
/usr/autodesk/maya2010-x64/lib/libDynSlice.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/autodesk/maya2010-x64/lib/libDynSlice.so to use relocation as a workaround,
until the library is fixed. Please file a bug report.

Permitindo acesso:

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

Comando de correção:

chcon -t textrel_shlib_t '/usr/autodesk/maya2010-x64/lib/libDynSlice.so'

Informações adicionais:

Contexto de origem            unconfined_u:unconfined_r:unconfined_execmem_t:s0-
                              s0:c0.c1023
Contexto de destino           system_u:object_r:lib_t:s0
Objetos de destino            /usr/autodesk/maya2010-x64/lib/libDynSlice.so [
                              file ]
Origem                        maya.bin
Caminho da origem             /usr/autodesk/maya2010-x64/bin/maya.bin
Porta                         <Desconhecido>
Máquina                      (removed)
Pacotes RPM de origem         Maya2010_0_64-2010.0-257
Pacotes RPM de destino        Maya2010_0_64-2010.0-257
RPM da política              selinux-policy-3.6.32-78.fc12
Selinux habilitado            True
Tipo de política             targeted
Modo reforçado               Enforcing
Nome do plugin                allow_execmod
Nome da máquina              (removed)
Plataforma                    Linux (removed) 2.6.31.5-127.fc12.x86_64 #1 SMP
                              Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Contador de alertas           1
Visto pela primeira vez em    Qui 04 Fev 2010 21:29:10 BRST
Visto pela última vez em     Qui 04 Fev 2010 21:29:10 BRST
ID local                      2e8bb7e3-754c-42ad-9247-ace20c0f0bfe
Números de linha             

Mensagens de auditoria não p 

node=(removed) type=AVC msg=audit(1265326150.175:25091): avc:  denied  { execmod } for  pid=23242 comm="maya.bin" path="/usr/autodesk/maya2010-x64/lib/libDynSlice.so" dev=dm-0 ino=208865 scontext=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 tcontext=system_u:object_r:lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1265326150.175:25091): arch=c000003e syscall=10 success=yes exit=4294967424 a0=7f4a87929000 a1=6ee000 a2=5 a3=7f4a87ac78b8 items=0 ppid=23222 pid=23242 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="maya.bin" exe="/usr/autodesk/maya2010-x64/bin/maya.bin" subj=unconfined_u:unconfined_r:unconfined_execmem_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,allow_execmod,maya.bin,unconfined_execmem_t,lib_t,file,execmod
audit2allow suggests:

#============= unconfined_execmem_t ==============
#!!!! This avc can be allowed using the boolean 'allow_execmod'

allow unconfined_execmem_t lib_t:file execmod;

Comment 1 Daniel Walsh 2010-02-05 15:41:33 UTC
Turn on the allow_execmod boolean

setsebool -P allow_execmod 1

Or set the context using chcon.

Comment 2 Daniel Walsh 2010-02-09 20:31:50 UTC
Miroslav please add

/usr/autodesk/maya2010-x64/lib/.*\.s0.*	--   gen_context(system_u:object_r:textrel_shlib_t,s0)

Comment 3 Miroslav Grepl 2010-02-10 11:11:02 UTC
Fixed in selinux-policy-3.6.32-87.fc12

Comment 4 Fedora Update System 2010-02-11 22:01:11 UTC
selinux-policy-3.6.32-89.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-89.fc12

Comment 5 Fedora Update System 2010-02-13 00:40:16 UTC
selinux-policy-3.6.32-89.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-1836

Comment 6 Fedora Update System 2010-02-20 00:19:21 UTC
selinux-policy-3.6.32-89.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.