diff options
| author | Javier Martinez Canillas <javierm@redhat.com> | 2020-02-18 12:03:17 +0100 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2020-07-23 20:53:24 -0400 |
| commit | 0a8f7ade76ff3eede486027eaa638181e6bed3b8 (patch) | |
| tree | 237c5e40898b9d90d537af5189acc8f02ee903fd /include/tpm.h | |
| parent | 89d72301aa67c82f00fe7fa4f42d7f6eb6045538 (diff) | |
| download | efi-boot-shim-0a8f7ade76ff3eede486027eaa638181e6bed3b8.tar.gz efi-boot-shim-0a8f7ade76ff3eede486027eaa638181e6bed3b8.zip | |
tpm: Include information about PE/COFF images in the TPM Event Log
The "TCG PC Client Specific Platform Firmware Profile Specification" says
that when measuring a PE/COFF image, the TCG_PCR_EVENT2 structure Event
field MUST contain a UEFI_IMAGE_LOAD_EVENT structure.
Currently an empty UEFI_IMAGE_LOAD_EVENT structure is passed so users only
have the hash of the PE/COFF image, but not information such the file path
of the binary.
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Upstream-commit-id: c252b9ee94c
Diffstat (limited to 'include/tpm.h')
| -rw-r--r-- | include/tpm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/tpm.h b/include/tpm.h index 746e871f..a05c2494 100644 --- a/include/tpm.h +++ b/include/tpm.h @@ -10,8 +10,9 @@ EFI_STATUS tpm_log_event(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 pcr, const CHAR8 *description); EFI_STATUS fallback_should_prefer_reset(void); -EFI_STATUS tpm_log_pe(EFI_PHYSICAL_ADDRESS buf, UINTN size, UINT8 *sha1hash, - UINT8 pcr); +EFI_STATUS tpm_log_pe(EFI_PHYSICAL_ADDRESS buf, UINTN size, + EFI_PHYSICAL_ADDRESS addr, EFI_DEVICE_PATH *path, + UINT8 *sha1hash, UINT8 pcr); EFI_STATUS tpm_measure_variable(CHAR16 *dbname, EFI_GUID guid, UINTN size, void *data); |
