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 1970481 - [Regression] Cannot accept Licence due to USB keyboard and mouse being blocked
Summary: [Regression] Cannot accept Licence due to USB keyboard and mouse being blocked
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: scap-security-guide
Version: 8.4
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Vojtech Polasek
QA Contact: Milan Lysonek
URL:
Whiteboard:
: 1931379 (view as bug list)
Depends On:
Blocks: 1999423
TreeView+ depends on / blocked
 
Reported: 2021-06-10 14:31 UTC by Renaud Métrich
Modified: 2021-11-10 00:57 UTC (History)
6 users (show)

Fixed In Version: scap-security-guide-0.1.57-1.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1999423 (view as bug list)
Environment:
Last Closed: 2021-11-09 18:43:59 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4265 0 None None None 2021-11-09 18:44:19 UTC

Description Renaud Métrich 2021-06-10 14:31:52 UTC
This bug was initially created as a copy of Bug #1970384

I am copying this bug because: 

STIG profile needs to enable the "usbguard_allow_hid_and_hub" automatically or system is unusable.
See https://bugzilla.redhat.com/show_bug.cgi?id=1970384#c4



Description of problem:

This is seen on RHEL8.4 when installing with STIG profile, when the hardware has a USB keyboard and mouse.

When the First Boot wizard shows up after installation, the keyboard and mouse are not functional at all, due to usbguard (being installed by default with STIG profile) blocking the devices:
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
1: allow id 1d6b:0002 serial "0000:02:00.0" name "xHCI Host Controller" hash "4+i1fOQzh6/CdbdfiwrmdTYf8TLnLkUDuN34mexLwrg=" parent-hash "tk91ejILTHC5XDTNeLGOAJfLza0VBAHXIC3JuPVFJxY=" via-port "usb1" with-interface 09:00:00 with-connect-type ""
2: allow id 1d6b:0003 serial "0000:02:00.0" name "xHCI Host Controller" hash "kMlilF7kSjfNYbDD2q8M+cXj+w/HO2jzc9gj5SSFwR0=" parent-hash "tk91ejILTHC5XDTNeLGOAJfLza0VBAHXIC3JuPVFJxY=" via-port "usb2" with-interface 09:00:00 with-connect-type ""
3: block id 0627:0001 serial "28754-0000:00:02.1:00.0-1" name "QEMU USB Tablet" hash "9f6ZIqpK5OG5DLoILMt3sFn/eW/uzyIHAwcP2g12A2A=" parent-hash "4+i1fOQzh6/CdbdfiwrmdTYf8TLnLkUDuN34mexLwrg=" via-port "1-1" with-interface 03:00:00 with-connect-type "unknown"
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Whitelisting of keyboard and mouse must be done by default, or else the system is not usable.

Servers only having USB devices are unusable.


Version-Release number of selected component (if applicable):

usbguard-1.0.0-2.el8.x86_64


How reproducible:

ALWAYS


Steps to Reproduce:

1. Install a libvirt QEMU/KVM with RHEL8.4 DVD and STIG profile

  On a 20GB disk, specify the following sizes for the various required partitions:
  - / 8GiB
  - swap 2GiB
  - /tmp, /var/tmp, /var/log, /var/log/audit 1GiB each
  - /home 200MiB
  - /var 4GiB

2. Boot the installed system

Actual results:

  First boot wizard shows up and it's not possible to click on the items

Expected results:

  Can click

Additional info:

With libvirt QEMU/KVM, a USB tablet is set up automatically, along with PS/2 keyboard and mouse.
For some reason, only the USB tablet is enabled during systemd-firstboot, that's why I can reproduce with a virtual machine.

Comment 1 Renaud Métrich 2021-06-10 15:00:24 UTC
This is a regression compared to 8.3.
On customer's system installed with STIG profile, he has the rule after installation:

/etc/usbguard/rules.conf
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
allow with-interface match-all { 03:*:* 09:00:* }
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

Comment 3 Vojtech Polasek 2021-06-15 07:55:40 UTC
Fixed upstream:
https://github.com/ComplianceAsCode/content/pull/7105

Comment 15 Milan Lysonek 2021-10-04 15:24:20 UTC
*** Bug 1931379 has been marked as a duplicate of this bug. ***

Comment 17 errata-xmlrpc 2021-11-09 18:43:59 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 (scap-security-guide 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/RHBA-2021:4265


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