Bug 562087

Summary: SELinux is preventing the /usr/bin/python from using potentially mislabeled files (/root/.local).
Product: [Fedora] Fedora Reporter: Fernando <fjpires>
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:bdfa0771ded6aa8ec1f5dc41ad48cfe42054db4e6382d15d5af721602ac84411
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-05 08:56:27 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 Fernando 2010-02-05 08:29:47 UTC
Resumo:

SELinux is preventing the /usr/bin/python from using potentially mislabeled
files (/root/.local).

Descrição Detalhada:

SELinux has denied system-config-f access to potentially mislabeled file(s)
(/root/.local). This means that SELinux will not allow system-config-f to use
these files. It is common for users to edit files in their home directory or tmp
directories and then move (mv) them to system directories. The problem is that
the files end up with the wrong file context which confined applications are not
allowed to access.

A Permitir o Acesso:

If you want system-config-f to access this files, you need to relabel them using
restorecon -v '/root/.local'. You might want to relabel the entire directory
using restorecon -R -v '/root/.local'.

Informação Adicional:

Contexto de Origem            system_u:system_r:firewallgui_t:s0-s0:c0.c1023
Contexto de Destino           system_u:object_r:gconf_home_t:s0
Objectos de Destino           /root/.local [ dir ]
Fonte                         system-config-f
Caminho de Origem             /usr/bin/python
Porto                         <Desconhecida>
Máquina                      (removed)
Pacotes RPM Fonte             python-2.6.2-2.fc12
Pacotes RPM Destino           
RPM da Política              selinux-policy-3.6.32-78.fc12
Selinux Activo                True
Tipo de Política             targeted
MLS Activo                    True
Modo de Execução Forçada   Enforcing
Nome do Plugin                home_tmp_bad_labels
Nome da Máquina              (removed)
Plataforma                    Linux (removed) 2.6.31.5-127.fc12.x86_64 #1 SMP
                              Sat Nov 7 21:11:14 EST 2009 x86_64 x86_64
Contador de Alertas           1
Primeira Vez Visto            Sex 05 Fev 2010 08:26:05 WET
Última Vez Visto             Sex 05 Fev 2010 08:26:05 WET
ID Local                      2bb45fcb-fea9-4df6-bdbf-76017fb7044d
Números de Linha             

Mensagens de Auditoria em Bru 

node=(removed) type=AVC msg=audit(1265358365.721:25508): avc:  denied  { search } for  pid=28834 comm="system-config-f" name=".local" dev=sda2 ino=123588 scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:gconf_home_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1265358365.721:25508): arch=c000003e syscall=4 success=no exit=-2 a0=d45550 a1=7fff8951e200 a2=7fff8951e200 a3=6b6361702d657469 items=0 ppid=28833 pid=28834 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="system-config-f" exe="/usr/bin/python" subj=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-78.fc12,home_tmp_bad_labels,system-config-f,firewallgui_t,gconf_home_t,dir,search
audit2allow suggests:

#============= firewallgui_t ==============
allow firewallgui_t gconf_home_t:dir search;

Comment 1 Miroslav Grepl 2010-02-05 08:56:27 UTC

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