Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1324312 - SELinux is preventing colord from 'read' accesses on the file /etc/udev/hwdb.bin.
Summary: SELinux is preventing colord from 'read' accesses on the file /etc/udev/hwdb....
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 23
Hardware: x86_64
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker abrt_hash:559041157b3...
Depends On: 1316514
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-06 05:47 UTC by Peter Bieringer
Modified: 2016-04-11 08:02 UTC (History)
20 users (show)

Fixed In Version: selinux-policy-3.13.1-158.12.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of: 1316514
Environment:
Last Closed: 2016-04-11 08:02:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Peter Bieringer 2016-04-06 05:47:52 UTC
Same issue on Fedora 23


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

Policy RPM                    selinux-policy-3.13.1-158.11.fc23.noarch

type=AVC msg=audit(1459876865.481:532): avc:  denied  { read } for  pid=4115 comm="colord" name="hwdb.bin" dev="sda5" ino=18781743 scontext=system_u:system_r:colord_t:s0 tcontext=unconfined_u:object_r:systemd_hwdb_etc_t:s0 tclass=file permissive=0

audit2allow:
#============= colord_t ==============
allow colord_t systemd_hwdb_etc_t:file read;



+++ This bug was initially created as a clone of Bug #1316514 +++

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-udev-229-5.fc25.x86_64
Policy RPM                    selinux-policy-3.13.1-177.fc25.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.4.0-1.fc24.x86_64 #1 SMP Mon Jan
                              11 16:48:24 UTC 2016 x86_64 x86_64
Alert Count                   2
First Seen                    2016-03-10 12:44:22 CET
Last Seen                     2016-03-10 12:44:22 CET
Local ID                      3418d193-6e35-4662-aeb8-99f12f702fb0

Raw Audit Messages
type=AVC msg=audit(1457610262.399:299): avc:  denied  { read } for  pid=1806 comm="colord" name="hwdb.bin" dev="dm-1" ino=2099237 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-177.fc25.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.4.0-1.fc24.x86_64
type:           libreport

--- Additional comment from Lukas Vrabec on 2016-03-15 12:21:18 EDT ---



--- Additional comment from Joachim Frieben on 2016-03-19 07:12:33 EDT ---

SELinux alerts are still being triggered during a live session using Fedora 24 Workstation Live Alpha 6 media including selinux-policy-targeted-3.13.1-179.fc24.

--- Additional comment from Adam Williamson on 2016-03-23 02:42:56 EDT ---

Description of problem:
Booted F24 Alpha candidate 7 (Alpha-1.7) Workstation x86_64 live on bare metal (some yum-cha RCA TV as the monitor, Intel graphics adapter). Denial was visible as soon as I reached the desktop, along with a gnome-settings-daemon crash.

Version-Release number of selected component:
selinux-policy-3.13.1-179.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
type:           libreport

--- Additional comment from Adam Williamson on 2016-03-23 02:59:14 EDT ---

Proposing as a Final blocker: "There must be no SELinux denial notifications or crash notifications on boot of or during installation from a release-blocking live image, or at first login after a default install of a release-blocking desktop."

--- Additional comment from Lukas Vrabec on 2016-03-23 07:26:31 EDT ---

commit e1f0dcee7f7452e12c492648ee9310f867dd8879
Author: Lukas Vrabec <lvrabec>
Date:   Wed Mar 23 12:25:45 2016 +0100

    Allow colord to read /etc/udev/hwdb.bin. rhzb#1316514

--- Additional comment from Vedran Miletić on 2016-03-24 19:26:49 EDT ---

Description of problem:
Logged in to GNOME desktop

Version-Release number of selected component:
selinux-policy-3.13.1-179.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-300.fc24.x86_64
type:           libreport

--- Additional comment from  on 2016-03-24 19:34:49 EDT ---

Description of problem:
efi boot of f24 alpha 7 workstation dd USB

Version-Release number of selected component:
selinux-policy-3.13.1-179.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
type:           libreport

--- Additional comment from Dan Mossor [danofsatx] on 2016-03-29 12:58:40 EDT ---

+1 Blocker. Should be no AVCs in released product.

--- Additional comment from Kamil Páral on 2016-03-29 13:24:49 EDT ---

Discussed at today's blocker review meeting [1]. Voted as AcceptedBlocker (Final) - clear violation of "There must be no SELinux denial notifications or crash notifications on boot of or during installation from a release-blocking live image, or at first login after a default install of a release-blocking desktop."

[1] https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2016-03-29

--- Additional comment from bmoon on 2016-03-31 09:43:21 EDT ---

Description of problem:
Installing Fedora 24 Alpha 7 from a USB drive, happens right after boot on the USB stick

Version-Release number of selected component:
selinux-policy-3.13.1-179.fc24.noarch

Additional info:
reporter:       libreport-2.6.4
hashmarkername: setroubleshoot
kernel:         4.5.0-0.rc7.git0.2.fc24.x86_64
type:           libreport


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