tcgbios: Disable platform hierarchy in case of failure

In the rare case of a TPM 2 failure, disable the platform hierarchy after
disabling the endorsement and owner hierarchies.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2021-09-07 17:05:52 -04:00 committed by Kevin O'Connor
parent 54082c81d9
commit 64f37cc530
1 changed files with 1 additions and 0 deletions

View File

@ -983,6 +983,7 @@ tpm_set_failure(void)
case TPM_VERSION_2:
tpm20_hierarchycontrol(TPM2_RH_ENDORSEMENT, TPM2_NO);
tpm20_hierarchycontrol(TPM2_RH_OWNER, TPM2_NO);
tpm20_hierarchycontrol(TPM2_RH_PLATFORM, TPM2_NO);
break;
}