firmware-security: Skip security attributes that have been obsoleted by others

Fixes: #2481
This commit is contained in:
Mario Limonciello 2023-05-12 00:30:09 -04:00 committed by Felipe Borges
parent c633429d6a
commit aa46ae53a1

View file

@ -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 */