Bug 712548

Summary: SELinux is preventing /usr/bin/python "getattr" access on /proc/<pid>/status.
Product: [Fedora] Fedora Reporter: Oscar Flor <oflor>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 12CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:614efc90fe31296f525b81c210fbbd13f7c734776c594615837c47ea0e42d0b1
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-11 07:53:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Oscar Flor 2011-06-11 02:51:14 UTC
Resúmen:

SELinux is preventing /usr/bin/python "getattr" access on /proc//status.

Descripción Detallada:

[yum es un tipo permisivo (abrt_t). Este acceso no fue denegado.]

SELinux denied access requested by yum. It is not expected that this access is
required by yum and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Permitiendo Acceso:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Información Adicional:

Contexto Fuente               system_u:system_r:abrt_t:s0
Contexto Destino              system_u:system_r:rpm_t:s0-s0:c0.c1023
Objetos Destino               /proc/<pid>/status [ file ]
Fuente                        yum
Dirección de Fuente          /usr/bin/python
Puerto                        <Desconocido>
Nombre de Equipo              (eliminado)
Paquetes RPM Fuentes          python-2.6.2-2.fc12
Paquetes RPM Destinos         
RPM de Políticas             selinux-policy-3.6.32-41.fc12
SELinux Activado              True
Tipo de Política             targeted
Modo Obediente                Enforcing
Nombre de Plugin              catchall
Nombre de Equipo              (eliminado)
Plataforma                    Linux (eliminado) 2.6.31.5-127.fc12.i686 #1 SMP Sat
                              Nov 7 21:41:45 EST 2009 i686 i686
Cantidad de Alertas           1
Visto por Primera Vez         mié 08 jun 2011 21:39:47 PYT
Visto por Última Vez         mié 08 jun 2011 21:39:47 PYT
ID Local                      eedccf3d-d589-4ae8-a327-055f4282e28b
Números de Línea            

Mensajes de Auditoría Crudos 

node=(eliminado) type=AVC msg=audit(1307583587.774:218): avc:  denied  { getattr } for  pid=17726 comm="yum" path="/proc/17645/status" dev=proc ino=614508 scontext=system_u:system_r:abrt_t:s0 tcontext=system_u:system_r:rpm_t:s0-s0:c0.c1023 tclass=file

node=(eliminado) type=SYSCALL msg=audit(1307583587.774:218): arch=40000003 syscall=195 success=yes exit=0 a0=982ea78 a1=bf97118c a2=284ff4 a3=982ea78 items=0 ppid=17725 pid=17726 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="yum" exe="/usr/bin/python" subj=system_u:system_r:abrt_t:s0 key=(null)



Hash String generated from  catchall,yum,abrt_t,rpm_t,file,getattr
audit2allow suggests:

#============= abrt_t ==============
#!!!! This avc is allowed in the current policy

allow abrt_t rpm_t:file getattr;

Comment 1 Miroslav Grepl 2011-06-11 07:53:08 UTC
F12 is no longer supported. Please update to the newer version of Fedora.


Btw. it was fixed in the F12 latest release.