From aa46ae53a19139a932707d762f039d685e9e25ec Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Fri, 12 May 2023 00:30:09 -0400 Subject: firmware-security: Skip security attributes that have been obsoleted by others Fixes: #2481 --- panels/firmware-security/cc-firmware-security-panel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panels/firmware-security/cc-firmware-security-panel.c b/panels/firmware-security/cc-firmware-security-panel.c index 1c0f99b35..b77dba349 100644 --- a/panels/firmware-security/cc-firmware-security-panel.c +++ b/panels/firmware-security/cc-firmware-security-panel.c @@ -256,6 +256,10 @@ parse_variant_iter (CcfirmwareSecurityPanel *self, if (appstream_id == NULL) return; + /* skip obsoleted */ + if (attr->flags & FWUPD_SECURITY_ATTR_FLAG_OBSOLETED) + return; + /* in fwupd <= 1.8.3 org.fwupd.hsi.Uefi.SecureBoot was incorrectly marked as HSI-0, * so lower the HSI number forcefully if this attribute failed -- the correct thing * to do of course is to update fwupd to a newer build */ -- cgit v1.2.1