Bug 1861330 - [RFE] Add support for rules covering combination of classes
Summary: [RFE] Add support for rules covering combination of classes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: usbguard
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Zoltan Fridrich
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-28 10:09 UTC by Dalibor Pospíšil
Modified: 2021-03-01 17:01 UTC (History)
3 users (show)

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:
Clone Of: 1772149
Environment:
Last Closed: 2021-01-14 12:00:01 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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