Bug 1847870

Summary: the usbguard daemon wants to read the /proc/cpuinfo file
Product: Red Hat Enterprise Linux 8 Reporter: Milos Malik <mmalik>
Component: usbguardAssignee: Radovan Sroka <rsroka>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.3CC: dapospis
Target Milestone: rcKeywords: AutoVerified, Regression, Triaged
Target Release: 8.3   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: usbguard-0.7.8-5.el8 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 03:16:38 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 Milos Malik 2020-06-17 09:11:33 UTC
Description of problem:


Version-Release number of selected component (if applicable):
selinux-policy-3.14.3-45.el8.noarch
selinux-policy-targeted-3.14.3-45.el8.noarch
usbguard-selinux-0.7.8-4.el8.noarch
usbguard-0.7.8-4.el8.aarch64

How reproducible:
 * always on aarch64

Steps to Reproduce:
1. get a RHEL-8.3 machine (targeted policy is active)
2. run the automated TC:
 * TC#606079 - /CoreOS/selinux-policy/Regression/usbguard-daemon-and-similar 
3. search for SELinux denials

Actual results:
----
type=PROCTITLE msg=audit(06/17/2020 04:24:44.725:142) : proctitle=/usr/sbin/usbguard-daemon -k -c /etc/usbguard/usbguard-daemon.conf 
type=PATH msg=audit(06/17/2020 04:24:44.725:142) : item=0 name=/proc/cpuinfo inode=4026531931 dev=00:04 mode=file,444 ouid=root ogid=root rdev=00:00 obj=system_u:object_r:proc_t:s0 nametype=NORMAL cap_fp=none cap_fi=none cap_fe=0 cap_fver=0 cap_frootid=0 
type=CWD msg=audit(06/17/2020 04:24:44.725:142) : cwd=/ 
type=SYSCALL msg=audit(06/17/2020 04:24:44.725:142) : arch=aarch64 syscall=openat success=no exit=EACCES(Permission denied) a0=0xffffffffffffff9c a1=0xffffb543cec8 a2=O_RDONLY a3=0x0 items=1 ppid=1 pid=30335 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=usbguard-daemon exe=/usr/sbin/usbguard-daemon subj=system_u:system_r:usbguard_t:s0 key=(null) 
type=AVC msg=audit(06/17/2020 04:24:44.725:142) : avc:  denied  { read } for  pid=30335 comm=usbguard-daemon name=cpuinfo dev="proc" ino=4026531931 scontext=system_u:system_r:usbguard_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=0 
----

Expected results:
 * no SELinux denials when usbguard is executed in default configuration

Additional info:
 * https://beaker.engineering.redhat.com/jobs/4358769

Comment 1 Dalibor Pospíšil 2020-06-17 09:23:50 UTC
ACs:
1. selinux policy modules covers this access for usbguard_t

will be included in the gating

Comment 9 errata-xmlrpc 2020-11-04 03:16:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (usbguard bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2020:4719