Bug 544678 - SELinux is preventing gdm-smartcard-w "write" access on /var/run/pcscd.events.
Summary: SELinux is preventing gdm-smartcard-w "write" access on /var/run/pcscd.events.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:976d39dc9f8...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-06 00:09 UTC by Alejandro Ayala
Modified: 2009-12-16 01:06 UTC (History)
2 users (show)

Fixed In Version: 3.6.32-56.fc12
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-16 01:06:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alejandro Ayala 2009-12-06 00:09:09 UTC
Resúmen:

SELinux is preventing gdm-smartcard-w "write" access on /var/run/pcscd.events.

Descripción Detallada:

SELinux denied access requested by gdm-smartcard-w. It is not expected that this
access is required by gdm-smartcard-w 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:xdm_t:s0-s0:c0.c1023
Contexto Destino              system_u:object_r:pcscd_var_run_t:s0
Objetos Destino               /var/run/pcscd.events [ dir ]
Fuente                        gdm-smartcard-w
Dirección de Fuente          gdm-smartcard-w
Puerto                        <Desconocido>
Nombre de Equipo              (removed)
Paquetes RPM Fuentes          
Paquetes RPM Destinos         
RPM de Políticas             selinux-policy-3.6.32-49.fc12
SELinux Activado              True
Tipo de Política             targeted
Modo Obediente                Enforcing
Nombre de Plugin              catchall
Nombre de Equipo              (removed)
Plataforma                    Linux (removed) 2.6.31.6-145.fc12.x86_64
                              #1 SMP Sat Nov 21 15:57:45 EST 2009 x86_64 x86_64
Cantidad de Alertas           627
Visto por Primera Vez         sáb 05 dic 2009 15:36:14 CST
Visto por Última Vez         sáb 05 dic 2009 15:48:54 CST
ID Local                      07cc76e6-6def-41b2-90c2-30077071cb68
Números de Línea            

Mensajes de Auditoría Crudos 

node=(removed) type=AVC msg=audit(1260049734.598:103912): avc:  denied  { write } for  pid=3957 comm="gdm-smartcard-w" name="pcscd.events" dev=dm-0 ino=2670600 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:pcscd_var_run_t:s0 tclass=dir



Hash String generated from  selinux-policy-3.6.32-49.fc12,catchall,gdm-smartcard-w,xdm_t,pcscd_var_run_t,dir,write
audit2allow suggests:

#============= xdm_t ==============
allow xdm_t pcscd_var_run_t:dir write;

Comment 1 Daniel Walsh 2009-12-07 20:40:51 UTC
I have no idea why or what it is doing, but I will allow.

You can add these rules for now using

# grep avc /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Fixed in selinux-policy-3.6.32-56.fc12.noarch

Comment 2 Fedora Update System 2009-12-07 22:54:21 UTC
selinux-policy-3.6.32-56.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/selinux-policy-3.6.32-56.fc12

Comment 3 Fedora Update System 2009-12-10 04:19:48 UTC
selinux-policy-3.6.32-56.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-2009-12990

Comment 4 Fedora Update System 2009-12-16 01:05:17 UTC
selinux-policy-3.6.32-56.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.