Bug 560254

Summary: SELinux is preventing gconf-defaults- (gconfdefaultsm_t) "getattr" to /home/gluengo/.gconf (user_home_t).
Product: [Fedora] Fedora Reporter: gluengo <c.gonzalo.luengo>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:47129604d8aff2c2035d1687f9737180b553869ccd8f2a7e6056fe2d8c1a5773
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-01 11:02:44 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 gluengo 2010-01-30 16:13:45 UTC
Resúmen:

SELinux is preventing gconf-defaults- (gconfdefaultsm_t) "getattr" to
/home/gluengo/.gconf (user_home_t).

Descripción Detallada:

SELinux denied access requested by gconf-defaults-. /home/gluengo/.gconf may be
a mislabeled. /home/gluengo/.gconf default SELinux type is gconf_home_t, but its
current type is user_home_t. Changing this file back to the default type, may
fix your problem.

File contexts can be assigned to a file in the following ways.

  * Files created in a directory receive the file context of the parent
    directory by default.
  * The SELinux policy might override the default label inherited from the
    parent directory by specifying a process running in context A which creates
    a file in a directory labeled B will instead create the file with label C.
    An example of this would be the dhcp client running with the dhclient_t type
    and creates a file in the directory /etc. This file would normally receive
    the etc_t type due to parental inheritance but instead the file is labeled
    with the net_conf_t type because the SELinux policy specifies this.
  * Users can change the file context on a file using tools such as chcon, or
    restorecon.

This file could have been mislabeled either by user error, or if an normally
confined application was run under the wrong domain.

However, this might also indicate a bug in SELinux because the file should not
have been labeled with this type.

If you believe this is a bug, please file a bug report
(http://bugzilla.redhat.com/bugzilla/enter_bug.cgi) against this package.

Permitiendo Acceso:

You can restore the default system context to this file by executing the
restorecon command. restorecon '/home/gluengo/.gconf', if this file is a
directory, you can recursively restore using restorecon -R
'/home/gluengo/.gconf'.

Comando para Corregir:

restorecon '/home/gluengo/.gconf'

Información Adicional:

Contexto Fuente               system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023
Contexto Destino              unconfined_u:object_r:user_home_t:s0
Objetos Destino               /home/gluengo/.gconf [ dir ]
Fuente                        gconf-defaults-
Dirección de Fuente          /usr/libexec/gconf-defaults-mechanism
Puerto                        <Desconocido>
Nombre de Equipo              (removed)
Paquetes RPM Fuentes          GConf2-2.26.2-1.fc11
Paquetes RPM Destinos         
RPM de Políticas             selinux-policy-3.6.12-91.fc11
SELinux Activado              True
Tipo de Política             targeted
Modo Obediente                Enforcing
Nombre de Plugin              restorecon
Nombre de Equipo              (removed)
Plataforma                    Linux (removed)
                              2.6.30.9-102.fc11.x86_64 #1 SMP Fri Dec 4 00:18:53
                              EST 2009 x86_64 x86_64
Cantidad de Alertas           2
Visto por Primera Vez         vie 18 dic 2009 01:48:56 CLST
Visto por Última Vez         vie 18 dic 2009 09:28:36 CLST
ID Local                      f7eff322-5ce9-4a1d-a064-9841b2a582f1
Números de Línea            

Mensajes de Auditoría Crudos 

node=(removed) type=AVC msg=audit(1261139316.128:18): avc:  denied  { getattr } for  pid=2322 comm="gconf-defaults-" path="/home/gluengo/.gconf" dev=dm-0 ino=307 scontext=system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1261139316.128:18): arch=c000003e syscall=4 success=no exit=-131938811387944 a0=215dd50 a1=7fffb655b820 a2=7fffb655b820 a3=1 items=0 ppid=1 pid=2322 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="gconf-defaults-" exe="/usr/libexec/gconf-defaults-mechanism" subj=system_u:system_r:gconfdefaultsm_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.12-91.fc11,restorecon,gconf-defaults-,gconfdefaultsm_t,user_home_t,dir,getattr
audit2allow suggests:

#============= gconfdefaultsm_t ==============
allow gconfdefaultsm_t user_home_t:dir getattr;

Comment 1 Miroslav Grepl 2010-02-01 11:00:28 UTC
*** Bug 560255 has been marked as a duplicate of this bug. ***

Comment 2 Miroslav Grepl 2010-02-01 11:01:16 UTC
*** Bug 560256 has been marked as a duplicate of this bug. ***

Comment 3 Miroslav Grepl 2010-02-01 11:01:40 UTC
*** Bug 560257 has been marked as a duplicate of this bug. ***

Comment 4 Miroslav Grepl 2010-02-01 11:02:44 UTC

*** This bug has been marked as a duplicate of bug 538428 ***