Bug 1873953

Summary: Filtering rules by attribute label does not work
Product: Red Hat Enterprise Linux 8 Reporter: Zoltan Fridrich <zfridric>
Component: usbguardAssignee: Radovan Sroka <rsroka>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: low Docs Contact:
Priority: unspecified    
Version: ---CC: alakatos, dapospis
Target Milestone: rcKeywords: AutoVerified, EasyFix, Patch, Triaged
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-18 16:12:41 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 Zoltan Fridrich 2020-08-31 07:34:31 UTC
Description of problem:
Calling usbguard list-rules --label "something" always ends with an error if at least one rule does not have an attribute label set.


How reproducible:
100%

Steps to Reproduce:
# usbguard list-rules
1: allow ...
2: allow ... label "value" 
# usbguard list-rules --label "value"
IPC ERROR: request id=1: IPC method: usbguard.IPC.listRules: BUG: Accessing an empty attribute

Actual results:
IPC ERROR: request id=1: IPC method: usbguard.IPC.listRules: BUG: Accessing an empty attribute


Expected results:
2: allow ... label "value"

Comment 1 Zoltan Fridrich 2020-08-31 07:42:12 UTC
This bug has been fixed in upstream.
Corresponding PR: https://github.com/USBGuard/usbguard/pull/409

Comment 15 errata-xmlrpc 2021-05-18 16:12:41 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-2021:1931