[gnome-control-center/wip/hughsie/hsi-events] firmware-security: Do not show HSI events where we changed the spec value
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/hughsie/hsi-events] firmware-security: Do not show HSI events where we changed the spec value
- Date: Wed, 24 Aug 2022 12:45:40 +0000 (UTC)
commit 4e2024a1ba4d77d4122940a3c6982d66c541795f
Author: Richard Hughes <richard hughsie com>
Date: Wed Aug 24 13:44:39 2022 +0100
firmware-security: Do not show HSI events where we changed the spec value
This is only needed until we depend on a fwupd that includes this code:
https://github.com/fwupd/fwupd/pull/4943
panels/firmware-security/cc-firmware-security-utils.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/panels/firmware-security/cc-firmware-security-utils.c
b/panels/firmware-security/cc-firmware-security-utils.c
index fa715cbac..97d28ada0 100644
--- a/panels/firmware-security/cc-firmware-security-utils.c
+++ b/panels/firmware-security/cc-firmware-security-utils.c
@@ -337,6 +337,10 @@ fu_security_attr_new_from_variant (GVariantIter *iter)
/* fallback for older fwupd versions */
if (attr->appstream_id != NULL && attr->title == NULL)
attr->title = g_strdup (fu_security_attr_get_title_fallback (attr->appstream_id));
+ if (g_strcmp0(attr->appstream_id, FWUPD_SECURITY_ATTR_ID_ENCRYPTED_RAM) == 0 &&
+ attr->result == FWUPD_SECURITY_ATTR_RESULT_NOT_SUPPORTED &&
+ attr->result_fallback == FWUPD_SECURITY_ATTR_RESULT_NOT_ENCRYPTED)
+ attr->result = FWUPD_SECURITY_ATTR_RESULT_UNKNOWN;
/* success */
return attr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]