Bug 1321468

Summary: SELinux is preventing colord from 'open' accesses on the file /etc/udev/hwdb.bin.
Product: [Fedora] Fedora Reporter: hx
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: 181gaming, autarch, bucky, dale.paulson, dominick.grift, dwalsh, juri-10, ken, lvrabec, marcvanwageningen, me, mgrepl, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:31cd1679008edaf88648a1526fe46160c5e8a89da96aa7d7757e8090d15bc197;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:44 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 hx 2016-03-27 16:07:37 UTC
Description of problem:
SELinux is preventing colord from 'open' accesses on the file /etc/udev/hwdb.bin.

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

If you believe that colord should be allowed open 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                Permissive
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                   6
First Seen                    2016-03-25 14:49:47 EET
Last Seen                     2016-03-27 18:18:33 EEST
Local ID                      dd548912-edd5-4dca-8cf4-0f818778a9a1

Raw Audit Messages
type=AVC msg=audit(1459091913.421:283): avc:  denied  { open } for  pid=1663 comm="colord" path="/etc/udev/hwdb.bin" dev="dm-1" ino=1312350 scontext=system_u:system_r:colord_t:s0 tcontext=unconfined_u:object_r:systemd_hwdb_etc_t:s0 tclass=file permissive=1


Hash: colord,colord_t,systemd_hwdb_etc_t,file,open

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 1 Fedora Update System 2016-03-30 14:41:13 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 2 Fedora Update System 2016-03-30 22:54:49 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 3 Nicholas 2016-03-31 19:02:26 UTC
*** Bug 1322966 has been marked as a duplicate of this bug. ***

Comment 4 autarch princeps 2016-04-01 07:39:21 UTC
Description of problem:
dnf upgrade

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 Jurgen Mehja 2016-04-03 11:20:38 UTC
Description of problem:
Every time that I boot my system, after I login I receive this problem. The screen also freezes when I change to another WIFI hotspot, but the mouse still moves without problem.

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 Fedora Update System 2016-04-05 13:52:20 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 7 Ken Fallon 2016-04-05 14:25:44 UTC
Description of problem:
Opening openoffice 5

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 8 Fedora Update System 2016-04-05 16:20:00 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.