Bug 1401277

Summary: SELinux is preventing gdbus from 'read' accesses on the file /home/.local/share/icc/edid-ddc9fe83754d9efbdf839577af0225b5.icc.
Product: [Fedora] Fedora Reporter: Jason Kitching <jkitching26>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dominick.grift, dwalsh, faranda, lvrabec, mgrepl, plautrba, pmoore, ssekidde
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:48e53508c1185c43be4be978b5c509238f7058f376767991e057497ad776a80b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-06 17:04:16 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 Jason Kitching 2016-12-04 09:27:13 UTC
Description of problem:
Not quite sure.Maybe a boot issue?
SELinux is preventing gdbus from 'read' accesses on the file /home/.local/share/icc/edid-ddc9fe83754d9efbdf839577af0225b5.icc.

*****  Plugin restorecon (99.5 confidence) suggests   ************************

If you want to fix the label. 
/home/.local/share/icc/edid-ddc9fe83754d9efbdf839577af0225b5.icc default label should be user_home_t.
Then you can run restorecon.
Do
# /sbin/restorecon -v /home/.local/share/icc/edid-ddc9fe83754d9efbdf839577af0225b5.icc

*****  Plugin catchall (1.49 confidence) suggests   **************************

If you believe that gdbus should be allowed read access on the edid-ddc9fe83754d9efbdf839577af0225b5.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:
# ausearch -c 'gdbus' --raw | audit2allow -M my-gdbus
# semodule -X 300 -i my-gdbus.pp

Additional Information:
Source Context                system_u:system_r:colord_t:s0
Target Context                unconfined_u:object_r:home_root_t:s0
Target Objects                /home/.local/share/icc/edid-
                              ddc9fe83754d9efbdf839577af0225b5.icc [ file ]
Source                        gdbus
Source Path                   gdbus
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-224.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.8.10-300.fc25.x86_64 #1 SMP Mon
                              Nov 21 18:59:16 UTC 2016 x86_64 x86_64
Alert Count                   36
First Seen                    2016-12-02 06:18:06 EST
Last Seen                     2016-12-04 04:15:56 EST
Local ID                      2fadfe5b-76df-46f7-95f7-56469d15e4fe

Raw Audit Messages
type=AVC msg=audit(1480842956.46:203): avc:  denied  { read } for  pid=1639 comm="colord" name="edid-ddc9fe83754d9efbdf839577af0225b5.icc" dev="dm-2" ino=3145764 scontext=system_u:system_r:colord_t:s0 tcontext=unconfined_u:object_r:home_root_t:s0 tclass=file permissive=0


Hash: gdbus,colord_t,home_root_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-224.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.8.10-300.fc25.x86_64
type:           libreport

Potential duplicate: bug 1341234

Comment 1 Lukas Vrabec 2016-12-06 17:04:16 UTC
Please, 

Use restorecon to fix your issue:
# restorecon -Rv /

Comment 2 Felipe Aranda 2017-04-21 14:29:15 UTC
Description of problem:
I just login with my user account on my new Fedora 25 installation

Version-Release number of selected component:
selinux-policy-3.13.1-225.11.fc25.noarch

Additional info:
reporter:       libreport-2.8.0
hashmarkername: setroubleshoot
kernel:         4.10.10-200.fc25.x86_64
type:           libreport