diff options
author | Mario Limonciello <superm1@gmail.com> | 2023-05-12 00:30:09 -0400 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-05-15 18:11:56 +0000 |
commit | aa46ae53a19139a932707d762f039d685e9e25ec (patch) | |
tree | 5e29b4fe70037f961d7a2a65e49d4eecbb9d2c78 | |
parent | c633429d6a467d6b4be101ff1481571f4bede3e0 (diff) | |
download | gnome-control-center-aa46ae53a19139a932707d762f039d685e9e25ec.tar.gz |
firmware-security: Skip security attributes that have been obsoleted by others
Fixes: #2481
-rw-r--r-- | panels/firmware-security/cc-firmware-security-panel.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 */ |