Bug 639468

Summary: SELinux está negando a /usr/libexec/gdm-session-worker el acceso "write" on ivan
Product: [Fedora] Fedora Reporter: Iván Jiménez <icj>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ef8468b062c3d45d6e6fec1f4349a8669d0b21dbc821a98890de14a749a9f588
Fixed In Version: selinux-policy-3.9.5-10.fc14 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-05 13:10:04 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 Iván Jiménez 2010-10-01 20:16:30 UTC
Resúmen:

SELinux está negando a /usr/libexec/gdm-session-worker el acceso "write" on ivan

Descripción Detallada:

SELinux negó el acceso requerido por gdm-session-wor. No se esperaba que este
acceso fuera requerido por gdm-session-wor, y puede ser indicio de un intento de
ataque. También es posible que la versión específica o la configuración de la
aplicación esté provocando esta necesidad de acceso adicional

Permitiendo Acceso:

Puede generar un módulo de política local para permitir este acceso. Vea FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Por favor, informe
este error.

Información Adicional:

Contexto Fuente               system_u:system_r:xdm_t:s0-s0:c0.c1023
Contexto Destino              system_u:object_r:fusefs_t:s0
Objetos Destino               ivan [ dir ]
Fuente                        gdm-session-wor
Dirección de Fuente           /usr/libexec/gdm-session-worker
Puerto                        <Desconocido>
Nombre de Equipo              (eliminado)
Paquetes RPM Fuentes          gdm-2.32.0-1.fc14
Paquetes RPM Destinos         
RPM de Políticas              selinux-policy-3.9.5-7.fc14
SELinux Activado              True
Tipo de Política              targeted
Modo Obediente                Enforcing
Nombre de Plugin              catchall
Nombre de Equipo              (eliminado)
Plataforma                    Linux (eliminado)
                              2.6.35.4-28.fc14.x86_64 #1 SMP Wed Sep 15 01:56:54
                              UTC 2010 x86_64 x86_64
Cantidad de Alertas           9
Visto por Primera Vez         vie 01 oct 2010 14:56:54 COT
Visto por Última Vez          vie 01 oct 2010 15:12:53 COT
ID Local                      72dcdd2e-307d-4496-ad59-1b83d767d50c
Números de Línea              

Mensajes de Auditoría Crudos  

node=(eliminado) type=AVC msg=audit(1285963973.999:18): avc:  denied  { write } for  pid=1323 comm="gdm-session-wor" name="ivan" dev=sda1 ino=11133 scontext=system_u:system_r:xdm_t:s0-s0:c0.c1023 tcontext=system_u:object_r:fusefs_t:s0 tclass=dir

node=(eliminado) type=SYSCALL msg=audit(1285963973.999:18): arch=c000003e syscall=2 success=no exit=-13 a0=14ee320 a1=c2 a2=180 a3=7fff53281c60 items=0 ppid=1298 pid=1323 auid=501 uid=501 gid=501 euid=501 suid=501 fsuid=501 egid=501 sgid=501 fsgid=501 tty=(none) ses=1 comm="gdm-session-wor" exe="/usr/libexec/gdm-session-worker" subj=system_u:system_r:xdm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,gdm-session-wor,xdm_t,fusefs_t,dir,write
audit2allow suggests:

#============= xdm_t ==============
#!!!! The source type 'xdm_t' can write to a 'dir' of the following types:
# xdm_log_t, gnome_home_type, pam_var_run_t, xdm_var_lib_t, xdm_var_run_t, gconf_home_t, pcscd_var_run_t, xkb_var_lib_t, xdm_rw_etc_t, xdm_home_t, pam_var_console_t, cgroup_t, var_lock_t, root_t, tmp_t, var_t, user_home_dir_t, user_fonts_t, user_tmpfs_t, locale_t, var_auth_t, xdm_spool_t, fonts_cache_t, tmpfs_t, user_tmp_t, auth_cache_t, xdm_tmpfs_t, var_spool_t, var_lib_t, var_run_t, xdm_tmp_t, xserver_log_t, var_log_t

allow xdm_t fusefs_t:dir write;

Comment 1 Daniel Walsh 2010-10-03 11:54:23 UTC
Is your homedir a fuse file system?

Comment 2 Iván Jiménez 2010-10-03 22:42:33 UTC
Yes, i was testing with setting $HOME to be an NTFS partition to share files with windows.

Comment 3 Daniel Walsh 2010-10-04 15:44:13 UTC
This is going to take a while to fix, but I have added a use_fusefs_home_dir boolean.

Fixed in selinux-policy-3.9.5-10.fc14

Comment 4 Fedora Update System 2010-10-04 19:38:07 UTC
selinux-policy-3.9.5-10.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.5-10.fc14

Comment 5 Fedora Update System 2010-10-05 13:07:25 UTC
selinux-policy-3.9.5-10.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.