From d3884fe8336be793e3b3ad5813f5e6c436d78d60 Mon Sep 17 00:00:00 2001 From: Lans Zhang Date: Fri, 30 Sep 2016 10:46:31 +0800 Subject: shim: trigger to record further logs to tcg 2.0 final event log area According to TCG EFI Protocol Specification for TPM 2.0 family, all events generated after the invocation of EFI_TCG2_GET_EVENT_LOG shall be stored in an instance of an EFI_CONFIGURATION_TABLE aka EFI TCG 2.0 final events table. Hence, it is necessary to trigger the internal switch through calling get_event_log() in order to allow to retrieve the logs from OS runtime. Signed-off-by: Lans Zhang --- tpm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tpm.h') diff --git a/tpm.h b/tpm.h index 2c21b262..5f47b071 100644 --- a/tpm.h +++ b/tpm.h @@ -114,6 +114,8 @@ typedef struct tdEFI_TCG2_EVENT { uint8_t Event[1]; } __attribute__ ((packed)) EFI_TCG2_EVENT; +#define EFI_TCG2_EVENT_LOG_FORMAT_TCG_2 0x00000002 + struct efi_tpm2_protocol { EFI_STATUS (EFIAPI *get_capability) (struct efi_tpm2_protocol *this, -- cgit v1.2.3