RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1398030 - colord trying to access hwdata
Summary: colord trying to access hwdata
Keywords:
Status: CLOSED DUPLICATE of bug 1373082
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-23 22:40 UTC by Phil Wyett
Modified: 2016-11-24 11:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-24 11:21:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Phil Wyett 2016-11-23 22:40:04 UTC
Description of problem:

SELinux is preventing /usr/libexec/colord from read access 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:
# ausearch -c 'colord' --raw | audit2allow -M my-colord
# semodule -i my-colord.pp

Additional Information:
Source Context                system_u:system_r:colord_t:s0
Target Context                system_u:object_r:systemd_hwdb_etc_t:s0
Target Objects                /etc/udev/hwdb.bin [ file ]
Source                        colord
Source Path                   /usr/libexec/colord
Port                          <Unknown>
Host                          hemi-yoda
Source RPM Packages           colord-1.2.7-2.el7.x86_64
Target RPM Packages           systemd-219-30.el7.x86_64
Policy RPM                    selinux-policy-3.13.1-102.el7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     hemi-yoda
Platform                      Linux hemi-yoda 3.10.0-514.el7.x86_64 #1 SMP Tue
                              Nov 22 16:42:41 UTC 2016 x86_64 x86_64
Alert Count                   5
First Seen                    2016-11-23 21:40:14 GMT
Last Seen                     2016-11-23 22:16:51 GMT
Local ID                      79ebf87c-539c-49d3-aad7-33dddf992ef5

Raw Audit Messages
type=AVC msg=audit(1479939411.884:169): avc:  denied  { read } for  pid=2010 comm="colord" name="hwdb.bin" dev="sda3" ino=1252741 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1479939411.884:169): arch=x86_64 syscall=open success=no exit=EACCES a0=7f63c28472fb a1=80000 a2=1b6 a3=24 items=1 ppid=1 pid=2010 auid=4294967295 uid=995 gid=993 euid=995 suid=995 fsuid=995 egid=993 sgid=993 fsgid=993 tty=(none) ses=4294967295 comm=colord exe=/usr/libexec/colord subj=system_u:system_r:colord_t:s0 key=(null)

type=CWD msg=audit(1479939411.884:169): cwd=/

type=PATH msg=audit(1479939411.884:169): item=0 name=/etc/udev/hwdb.bin inode=1252741 dev=08:03 mode=0100444 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:systemd_hwdb_etc_t:s0 objtype=NORMAL

Hash: colord,colord_t,systemd_hwdb_etc_t,file,read


Actual results:

A warning.

Expected results:

No warning.


Additional info:

Comment 1 Milos Malik 2016-11-24 08:05:49 UTC
I believe this bug is a duplicate of BZ#1373082.

Comment 2 Lukas Vrabec 2016-11-24 11:21:18 UTC

*** This bug has been marked as a duplicate of bug 1373082 ***


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