Bug 749344

Summary: SELinux is preventing /usr/libexec/colord from 'getattr' accesses on the file /home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc.
Product: [Fedora] Fedora Reporter: Pierre-YvesChibon <pingou>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:597565d0758c880411327f24768abb7049033facba279e972a85307282436718
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-10-26 19:22: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 Pierre-YvesChibon 2011-10-26 18:42:26 UTC
libreport version: 2.0.6
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.1.0-1.fc16.x86_64
reason:         SELinux is preventing /usr/libexec/colord from 'getattr' accesses on the file /home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc.
time:           Wed Oct 26 20:39:36 2011

description:
:SELinux is preventing /usr/libexec/colord from 'getattr' accesses on the file /home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc default label should be icc_data_home_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that colord should be allowed getattr access on the edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep colord /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:colord_t:s0-s0:c0.c1023
:Target Context                unconfined_u:object_r:gconf_home_t:s0
:Target Objects                /home/pierrey/.local/share/icc/edid-
:                              58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc [ file ]
:Source                        colord
:Source Path                   /usr/libexec/colord
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           colord-0.1.13-2.fc16
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-46.fc16
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Permissive
:Host Name                     (removed)
:Platform                      Linux (removed) 3.1.0-1.fc16.x86_64 #1
:                              SMP Mon Oct 24 12:18:13 UTC 2011 x86_64 x86_64
:Alert Count                   1
:First Seen                    Wed 26 Oct 2011 08:37:24 PM CEST
:Last Seen                     Wed 26 Oct 2011 08:37:24 PM CEST
:Local ID                      3d80205e-44e4-436f-9238-160688c7ea40
:
:Raw Audit Messages
:type=AVC msg=audit(1319654244.405:83): avc:  denied  { getattr } for  pid=1490 comm="colord" path="/home/pierrey/.local/share/icc/edid-58e8ad2de2d74b7b3c2372cd4f5f7b6e.icc" dev=sda8 ino=263644 scontext=system_u:system_r:colord_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:gconf_home_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1319654244.405:83): arch=x86_64 syscall=fstat success=yes exit=0 a0=f a1=7fff67163b70 a2=7fff67163b70 a3=1 items=0 ppid=1 pid=1490 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0-s0:c0.c1023 key=(null)
:
:Hash: colord,colord_t,gconf_home_t,file,getattr
:
:audit2allow
:
:#============= colord_t ==============
:allow colord_t gconf_home_t:file getattr;
:
:audit2allow -R
:
:#============= colord_t ==============
:allow colord_t gconf_home_t:file getattr;
:

Comment 1 Daniel Walsh 2011-10-26 19:22:08 UTC
restorecon -R -v ~/.local

Should fix the problem just like the alert told you.

Comment 2 Pierre-YvesChibon 2011-10-26 19:44:43 UTC
Indeed it fixed the problem. I had tried but not on the entire ~/.local, I should have been more generous :)

Sorry for the noise