Bug 1320745

Summary: SELinux is preventing colord from 'read' accesses on the file /etc/udev/hwdb.bin.
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 23CC: 181gaming, autarch, bondvt, bugzilla, candan, colotunbabay2010, dan, dew, dominick.grift, dpo, dulima8am, dwalsh, fukidid, hx, ignerious, joshua.rich, katinanh, keyshooter, ledufff, lvrabec, marco.guazzone, marcvanwageningen, mgrepl, mikhail.v.gavrilov, obliterator666, pavel.ondracka, pcfe, pep, plautrba, pratik, roman, salec, sergei.litvinenko, vikigoyal, whitetiger
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:559041157b3fc72d1501f3e4db8fe5e6259c0c005d2970f75d166eb90e1ec82a;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-158.12.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-05 13:52:31 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 Christian Stadelmann 2016-03-23 22:15:44 UTC
Description of problem:
SELinux is preventing colord from 'read' accesses on the file /etc/udev/hwdb.bin.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that colord should be allowed read access on the hwdb.bin 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
Target Context                unconfined_u:object_r:systemd_hwdb_etc_t:s0
Target Objects                /etc/udev/hwdb.bin [ file ]
Source                        colord
Source Path                   colord
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           systemd-222-14.fc23.x86_64
Policy RPM                    selinux-policy-3.13.1-158.11.fc23.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.6-300.fc23.x86_64 #1 SMP Wed
                              Mar 16 22:10:37 UTC 2016 x86_64 x86_64
Alert Count                   16
First Seen                    2016-03-19 14:47:55 CET
Last Seen                     2016-03-23 20:11:48 CET
Local ID                      a2603893-ce6d-468c-97d4-77b703476e65

Raw Audit Messages
type=AVC msg=audit(1458760308.234:270): avc:  denied  { read } for  pid=1594 comm="colord" name="hwdb.bin" dev="dm-0" ino=1864572 scontext=system_u:system_r:colord_t:s0 tcontext=unconfined_u:object_r:systemd_hwdb_etc_t:s0 tclass=file permissive=0


Hash: colord,colord_t,systemd_hwdb_etc_t,file,read

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Potential duplicate: bug 1316514

Comment 1 Daniel Kelly 2016-03-25 19:28:16 UTC
Description of problem:
occurs on login after updating selinux policy to 3.13.1-158.11


Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 2 Marco Guazzone 2016-03-26 06:36:40 UTC
Description of problem:
I was starting libreoffice

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 3 salec 2016-03-26 07:26:18 UTC
Description of problem:
SELinux alert during startup.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
screencast.ogv: 
type:           libreport

Comment 4 Sergei LITVINENKO 2016-03-27 09:10:48 UTC
Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 5 Donald Edward Winslow 2016-03-28 22:49:30 UTC
Description of problem:
It started several days ago; I don't know why. Whenever I boot and log in to KDE, I get a sealert saying that colord is trying to read hwdb.bin.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 6 krdondon 2016-03-29 00:00:25 UTC
*** Bug 1321691 has been marked as a duplicate of this bug. ***

Comment 7 Fedora Update System 2016-03-30 14:40:58 UTC
selinux-policy-3.13.1-158.12.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1cdba6b1c7

Comment 8 Фукидид 2016-03-30 20:45:09 UTC
Description of problem:
I am connected MFP to the computer via USB.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 9 TOURE 2016-03-30 21:35:00 UTC
*** Bug 1322613 has been marked as a duplicate of this bug. ***

Comment 10 Fedora Update System 2016-03-30 22:54:36 UTC
selinux-policy-3.13.1-158.12.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1cdba6b1c7

Comment 11 Nicholas 2016-03-31 19:03:04 UTC
*** Bug 1322967 has been marked as a duplicate of this bug. ***

Comment 12 Manash Ghosh 2016-04-02 06:40:20 UTC
Description of problem:
I found this bug on "SElinux Alert Browser" so I am reporting this.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 13 vikram goyal 2016-04-03 08:01:50 UTC
Description of problem:

I have osmc running SAMBA shares on a Raspberry on local LAN. I mounted the to samba shares successfully & stored the password permanantly & went ahead to add the same with "Add Bookmark" in PcManFM when the denial occured.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 14 Diego Herrera A. 2016-04-03 19:41:07 UTC
*** Bug 1323513 has been marked as a duplicate of this bug. ***

Comment 15 Fedora Update System 2016-04-05 13:52:03 UTC
selinux-policy-3.13.1-158.12.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2016-04-05 16:19:44 UTC
selinux-policy-3.13.1-158.12.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 17 dan 2016-04-05 23:18:17 UTC
Description of problem:
This was a situation that occured when the troubleshooting portion of setroubleshoot was activated.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 18 dan 2016-04-05 23:20:12 UTC
Description of problem:
This situation occured when the setroubleshoot was activated, at which time this was reported as a system issue.

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport

Comment 19 Roman Melihhov 2016-04-06 12:32:38 UTC
Description of problem:
Opening media directory after importing from external SDHC card

Version-Release number of selected component:
selinux-policy-3.13.1-158.11.fc23.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.6-300.fc23.x86_64
type:           libreport