Bug 1321400

Summary: SELinux is preventing colord from 'getattr' 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, danie.dejager, dominick.grift, dwalsh, lvrabec, marcvanwageningen, mgrepl, plautrba, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:447af7088bac06dafb3c5e029a9d2093a6c0e1bc107bacb68ab92956ef0ef7b9;VARIANT_ID=workstation;
Fixed In Version: selinux-policy-3.13.1-180.fc24 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:40 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 hx 2016-03-26 09:18:50 UTC
Description of problem:
SELinux is preventing colord from 'getattr' accesses on the file /etc/udev/hwdb.bin.

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

If you believe that colord should be allowed getattr 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                   2
First Seen                    2016-03-25 14:49:47 EET
Last Seen                     2016-03-26 10:55:39 EET
Local ID                      672ef9c6-e24f-4517-a920-c31527056fa6

Raw Audit Messages
type=AVC msg=audit(1458982539.932:283): avc:  denied  { getattr } for  pid=1670 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,getattr

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:08 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:45 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 Danie de Jager 2016-03-31 05:48:37 UTC
Description of problem:
Upgraded OS using DNF and restarted. Saw the notification.

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 4 Nicholas 2016-03-31 19:01:49 UTC
*** Bug 1322964 has been marked as a duplicate of this bug. ***

Comment 5 Fedora Update System 2016-04-05 13:52:16 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 6 Fedora Update System 2016-04-05 16:19:55 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.