Bug 1401277 - SELinux is preventing gdbus from 'read' accesses on the file /home/.local/share/icc/edid-ddc9fe83754d9efbdf839577af0225b5.icc.
Summary: SELinux is preventing gdbus from 'read' accesses on the file /home/.local/sha...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 25
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:48e53508c1185c43be4be978b5c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-04 09:27 UTC by Jason Kitching
Modified: 2017-04-21 14:29 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-06 17:04:16 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.