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 1861330

Summary: [RFE] Add support for rules covering combination of classes
Product: [Fedora] Fedora Reporter: Dalibor Pospíšil <dapospis>
Component: usbguardAssignee: Zoltan Fridrich <zfridric>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 32CC: dkopecek, rsroka, zfridric
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: usbguard-1.0.0-1.fc34 usbguard-1.0.0-1.eln108 usbguard-1.0.0-1.fc32 usbguard-1.0.0-1.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1772149 Environment:
Last Closed: 2021-01-14 12:00:01 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 Dalibor Pospíšil 2020-07-28 10:09:26 UTC
Description of problem:
This issue has been fixed in RHEL-8.2 already in usbguard-0.7.4-4.el8 however it appears not to be in place in usbguard-0.7.6-8.fc32.x86_64

Expectations of OSPP (Operating System Protection Profile) and Common Criteria configuration for RHEL8 regarding usbguard expect all devices that are not HID or Hub to be denied. With the complexity of modern USB devices, it is not possible to express it in a combination of rules.

Ideal way would be to say "Allow device that is combination of {03:*:*} and {09:*:*}" That is not supported at the moment.

Version-Release number of selected component (if applicable):
usbguard-0.7.6-8.fc32

How reproducible:
100%

Steps to Reproduce:
1. # usbguard-rule-parser "allow id *:* with-interface match-all { 03:*:* 09:*:* }"'
INPUT: allow id *:* with-interface match-all { 03:*:* 09:*:* }
! ERROR: RuleParserError
!!  allow id *:* with-interface match-all { 03:*:* 09:*:* }
!!  ^-- <argv>:1:12(12): parse error matching tao::pegtl::sor<usbguard::RuleParser::comment, usbguard::RuleParser::rule>

Comment 1 Fedora Update System 2021-01-14 12:00:01 UTC
FEDORA-2021-238a116415 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 2 Fedora Update System 2021-01-14 12:24:07 UTC
FEDORA-2021-9d3b0750c8 has been pushed to the Fedora ELN stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2021-01-14 14:59:32 UTC
FEDORA-2021-7d75c755f2 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d75c755f2

Comment 4 Fedora Update System 2021-01-14 15:01:14 UTC
FEDORA-2021-6a5da9174e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-6a5da9174e

Comment 5 Fedora Update System 2021-01-15 02:07:30 UTC
FEDORA-2021-7d75c755f2 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7d75c755f2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d75c755f2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2021-01-15 02:15:29 UTC
FEDORA-2021-6a5da9174e has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6a5da9174e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6a5da9174e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-01-15 11:49:46 UTC
FEDORA-2021-7d75c755f2 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d75c755f2

Comment 8 Fedora Update System 2021-01-15 11:50:12 UTC
FEDORA-2021-6a5da9174e has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-6a5da9174e

Comment 9 Fedora Update System 2021-01-16 02:09:14 UTC
FEDORA-2021-7d75c755f2 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7d75c755f2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7d75c755f2

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-01-16 02:17:40 UTC
FEDORA-2021-6a5da9174e has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-6a5da9174e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-6a5da9174e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-01-24 01:21:49 UTC
FEDORA-2021-7d75c755f2 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-03-01 17:01:06 UTC
FEDORA-2021-6a5da9174e has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.