mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-12 09:48:05 +00:00
Skip the fwupdx64.efi BootXXXX entry when measuring system integrity
This is created before the UEFI capsule plugin adds the new BootXXXX entry on NVRAM systems.
This commit is contained in:
parent
d4bfb0e53c
commit
3cbfbe1e09
@ -254,7 +254,17 @@ fu_engine_integrity_measure_uefi(GHashTable *self)
|
||||
g_autoptr(GBytes) blob =
|
||||
fu_efivar_get_data_bytes(FU_EFIVAR_GUID_EFI_GLOBAL, name, NULL, NULL);
|
||||
if (blob != NULL && g_bytes_get_size(blob) > 0) {
|
||||
const guint8 needle[] = "f\0w\0u\0p\0d";
|
||||
g_autofree gchar *id = g_strdup_printf("UEFI:%s", name);
|
||||
if (fu_memmem_safe(g_bytes_get_data(blob, NULL),
|
||||
g_bytes_get_size(blob),
|
||||
needle,
|
||||
sizeof(needle),
|
||||
NULL,
|
||||
NULL)) {
|
||||
g_debug("skipping %s as fwupd found", id);
|
||||
continue;
|
||||
}
|
||||
fu_engine_integrity_add_measurement(self, id, blob);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user