Bug 589403 - SELinux is preventing /usr/bin/avidemux2_qt4 from loading /usr/lib/libADM5avcodec.so.52 which requires text relocation.
SELinux is preventing /usr/bin/avidemux2_qt4 from loading /usr/lib/libADM5avc...
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
12
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Fedora Extras Quality Assurance
setroubleshoot_trace_hash:0f426f72723...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 01:03 EDT by Cássio Magno
Modified: 2010-05-08 10:17 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-06 03:43:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Cássio Magno 2010-05-06 01:03:09 EDT
Sumário:

SELinux is preventing /usr/bin/avidemux2_qt4 from loading
/usr/lib/libADM5avcodec.so.52 which requires text relocation.

Descrição detalhada:

The avidemux2_qt4 application attempted to load /usr/lib/libADM5avcodec.so.52
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/lib/libADM5avcodec.so.52 to use relocation as a workaround, until the
library is fixed. Please file a bug report.

Permitindo acesso:

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

Comando de correção:

chcon -t textrel_shlib_t '/usr/lib/libADM5avcodec.so.52'

Informações adicionais:

Contexto de origem            unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1
                              023
Contexto de destino           system_u:object_r:lib_t:s0
Objetos de destino            /usr/lib/libADM5avcodec.so.52 [ file ]
Origem                        avidemux2_qt4
Caminho da origem             /usr/bin/avidemux2_qt4
Porta                         <Desconhecido>
Máquina                      (removed)
Pacotes RPM de origem         avidemux-qt-2.5.2-1.fc12
Pacotes RPM de destino        avidemux-libs-2.5.2-1.fc12
RPM da política              selinux-policy-3.6.32-41.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.32.11-99.fc12.i686.PAE
                              #1 SMP Mon Apr 5 16:15:03 EDT 2010 i686 i686
Contador de alertas           1
Visto pela primeira vez em    Qua 05 Mai 2010 00:35:31 BRT
Visto pela última vez em     Qua 05 Mai 2010 00:35:31 BRT
ID local                      a9eee3c0-c233-402a-90a4-89a4c3fd474f
Números de linha             

Mensagens de auditoria não p 

node=(removed) type=AVC msg=audit(1273030531.10:26): avc:  denied  { execmod } for  pid=5665 comm="avidemux2_qt4" path="/usr/lib/libADM5avcodec.so.52" dev=sda2 ino=143976 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(1273030531.10:26): arch=40000003 syscall=125 success=no exit=-13 a0=df9000 a1=3f5000 a2=5 a3=bfb6e840 items=0 ppid=1 pid=5665 auid=500 uid=500 gid=500 euid=500 suid=500 fsuid=500 egid=500 sgid=500 fsgid=500 tty=(none) ses=1 comm="avidemux2_qt4" exe="/usr/bin/avidemux2_qt4" subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  allow_execmod,avidemux2_qt4,unconfined_t,lib_t,file,execmod
audit2allow suggests:

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

allow unconfined_t lib_t:file execmod;
Comment 1 Miroslav Grepl 2010-05-06 03:43:46 EDT
please run:

yum update

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