aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2021-06-09 13:31:59 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-06-30 16:58:48 -0400
commitba949f552206dfd27aa54ef1044e2238434fe4be (patch)
tree8ccbd7c4ad053c96f71a6b037d91b5061f7c2ded
parente3c30795823672eec9bde75187e184f23ed98d70 (diff)
downloadseabios-hppa-ba949f552206dfd27aa54ef1044e2238434fe4be.zip
seabios-hppa-ba949f552206dfd27aa54ef1044e2238434fe4be.tar.gz
seabios-hppa-ba949f552206dfd27aa54ef1044e2238434fe4be.tar.bz2
tcgbios: Fix details in log entries
Fix two details of the logs: - Set the field 'SpecErrata' to 2 as required by specs. - Write the separator into the log entry's event field. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
-rw-r--r--src/tcgbios.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tcgbios.c b/src/tcgbios.c
index 82894f5..4150aa0 100644
--- a/src/tcgbios.c
+++ b/src/tcgbios.c
@@ -274,7 +274,7 @@ tpm20_write_EfiSpecIdEventStruct(void)
.hdr.platformClass = TPM_TCPA_ACPI_CLASS_CLIENT,
.hdr.specVersionMinor = 0,
.hdr.specVersionMajor = 2,
- .hdr.specErrata = 0,
+ .hdr.specErrata = 2,
.hdr.uintnSize = 2,
};
@@ -1016,7 +1016,8 @@ tpm_add_event_separators(void)
u32 pcrIndex;
for (pcrIndex = 0; pcrIndex <= 7; pcrIndex++)
tpm_add_measurement_to_log(pcrIndex, EV_SEPARATOR,
- NULL, 0,
+ (const char *)evt_separator,
+ sizeof(evt_separator),
evt_separator,
sizeof(evt_separator));
}