]> git.ipfire.org Git - thirdparty/systemd.git/commit
efi-api: check the EFI_TCG2_FINAL_EVENTS_TABLE in efi_has_tpm2()
authorJia Zhang <zhang.jia@linux.alibaba.com>
Sat, 24 Dec 2022 09:46:01 +0000 (17:46 +0800)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jan 2023 17:02:18 +0000 (18:02 +0100)
commit4b3391158197e9158cc754e56bbeaf94e2fd8395
tree0b8f4ff5e4fa2004c58b968d3656d5365146844b
parentf151abb0e5fa4f820109eb0541bfdcba319d2b92
efi-api: check the EFI_TCG2_FINAL_EVENTS_TABLE in efi_has_tpm2()

The EFI firmware may provide the TPM2 event log using
EFI_TCG2_FINAL_EVENTS_TABLE stored in EFI configuration table,
instead of the ACPI Table TPM2.

If the ACPI Table TPM2 doesn't exist, try to check whether
EFI_TCG2_FINAL_EVENTS_TABLE is available or not.

Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
src/shared/efi-api.c