Bug 1460480

Summary: /usr/libexec/colord (colord_t) tries to access hwdb.bin (systemd_hwdb_etc_t)
Product: Red Hat Enterprise Linux 7 Reporter: Robert Scheck <redhat-bugzilla>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Milos Malik <mmalik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.3CC: lvrabec, mgrepl, mmalik, plautrba, pvrabec, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-12 11:46:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2017-06-11 01:08:11 UTC
Description of problem:
type=AVC msg=audit(1495140135.407:133): avc:  denied  { read } for  pid=1861 comm="colord" name="hwdb.bin" dev="dm-0" ino=1838809 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_etc_t:s0 tclass=file
type=SYSCALL msg=audit(1495140135.407:133): arch=c000003e syscall=2 success=no exit=-13 a0=7fb3c7a822fb a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=1861 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=AVC msg=audit(1495140135.407:134): avc:  denied  { read } for  pid=1861 comm="colord" name="hwdb.bin" dev="dm-0" ino=1838809 scontext=system_u:system_r:colord_t:s0 tcontext=system_u:object_r:systemd_hwdb_etc_t:s0 tclass=file
type=SYSCALL msg=audit(1495140135.407:134): arch=c000003e syscall=2 success=no exit=-13 a0=7fb3c7a822fb a1=80000 a2=1b6 a3=24 items=0 ppid=1 pid=1861 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=SERVICE_START msg=audit(1495140135.412:135): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=colord comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Version-Release number of selected component (if applicable):
selinux-policy-targeted-3.13.1-102.el7_3.16.noarch
colord-1.2.7-2.el7.x86_64

How reproducible:
Everytime, see above and below. Basically a system with GUI.

Actual results:
/usr/libexec/colord tries to access hwdb.bin

Expected results:
No AVC denied, but I have no idea if that should be allowed or not.

Comment 2 Milos Malik 2017-06-12 08:44:16 UTC
I believe this bug is a duplicate of BZ#1373082.

Comment 3 Lukas Vrabec 2017-06-12 11:46:10 UTC

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