A TPM2.0 testing tool build upon TPM2.0-TSS
Go to file
Davide Cavalca bf85ff7d7a Backport upstream bugfix for tpm2_eventlog
tpm2_eventlog reads the UEFI TPM eventlog, and uses it to calculate the PCR values we expect the TPM to contain. If they match then we know we can use the information in the eventlog to validate we see the expected events. This commit fixes an error where the PCR calculation fails to take into account the startup details of the TPM, resulting in incorrectly calculating the expected value for PCR0.

Resolves: RHEL-83453

Signed-off-by: Davide Cavalca <dcavalca@centosproject.org>
2025-03-21 13:56:04 -07:00
tests tpm2-tools: Fix tests 2022-10-24 14:39:53 +02:00
.gitignore RHEL 9.0.0 Alpha bootstrap 2020-10-15 13:00:33 -07:00
576a31bcc910da517067b29667f45fbe78e812e0.patch Backport upstream bugfix for tpm2_eventlog 2025-03-21 13:56:04 -07:00
0001-Fix-nv_readpublic.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0001-lib-tpm2_eventlog_yaml-use-char16_t-for-UEFI-charact.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0001-testparms-fix-condition-for-negative-test.patch tpm2-tools: Convert to using swtpm instead of tpm_server for testing 2022-06-06 00:11:07 -07:00
0001-tpm2_sessionconfig-fix-usage-of-disable-continuesess.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0002-Patch-set-for-handling-of-new-event-types-in-tpm2_ev.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0002-tpm2_encodeobject-New-tool-to-encode-TPM2-object.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0002-tpm2_tool.c-Fix-missing-include-for-basename.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0003-Code-clarity-fix-for-calculation-of-data-member-addr.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0003-tools-tpm2_evictconrol-fix-for-call-to-Esys_TR_Close.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0003-tpm2_nvread-fix-input-handling-no-nv-index.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0004-Fix-argument-parsing-in-tpm2_policylocality.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0004-tpm2_checkquote-Add-comparison-of-pcr-selection.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0004-tpm2_eventlog-clean-up-some-magic-numbers.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0005-tools-tpm2_tool.c-Fix-an-issue-where-LOG_WARN-is-alw.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0005-tpm2_checkquote-Fix-check-of-magic-number.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0005-tpm2_eventlog_yaml-fix-malformed-YAML-for-EV_IPL-dat.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0006-import-fix-bug-on-using-scheme.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0006-test-track-expected-YAML-output-for-eventlog.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0006-tpm2_setprimarypolicy-Fix-resource-leak.patch Backport upstream fixes 2024-06-19 16:20:36 +02:00
0007-tpm2_eventlog_yaml-fix-parsing-for-MokListTrusted.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0007-tpm2_policyor-fix-unallocated-policy-list.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0008-lib-tpm2_alg_util.c-Fix-potential-null-pointer-deref.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0008-tests-add-eventlog-for-parsing-MokListTrusted.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0009-tpm2_eventlog_yaml-use-defines-for-Unicode-variables.patch tpm2-tools: Fix eventlog output 2022-10-24 11:49:30 +02:00
0009-tss2_provision-fix-usage-of-L-parameter.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0010-tpm2_encodeobject-fix-formatting.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0011-tpm2_encodeobject-fix-auth-boolean-flag.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0012-bugfix-fix-convert-sm2-public-key-in-openssl3.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0013-readpublic-fix-reading-and-writing-serialized-trs.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0014-fix-wrong-function-name-of-Esys_Load.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0015-tpm-errata-switch-to-twos-complement.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0016-tpm2_eventlog.c-Fix-pcr-extension-for-EV_NO_ACTION.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0017-kdfa.c-Fix-problem-with-FORTIFY_SOURCE-on-Fedora.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
0019-build-Use-hardcoded-version-variable.patch tpm2-tools: Rebase to 5.2 release 2022-05-31 20:31:30 -07:00
add_pregenerated_doc.patch tpm2-tools: Backport from upstream 2023-06-05 17:36:15 +02:00
gating.yaml tpm2-tools: add gating tests 2021-06-22 15:43:39 -07:00
sources tpm2-tools: Rebase to 5.2 release 2022-05-31 20:31:30 -07:00
test-fixup.patch tpm2-tools: Convert to using swtpm instead of tpm_server for testing 2022-06-06 00:11:07 -07:00
tpm2-tools.spec Backport upstream bugfix for tpm2_eventlog 2025-03-21 13:56:04 -07:00