]> xenbits.xensource.com Git - seabios.git/commitdiff
tcgbios: Disable platform hierarchy in case of failure
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Tue, 7 Sep 2021 21:05:52 +0000 (17:05 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Fri, 24 Sep 2021 02:47:57 +0000 (22:47 -0400)
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>
src/tcgbios.c

index 02921d8cae80184ca624a267af2f95e6ef413a04..31f4d7b82fe1cd8ec719ca85e77b7e310e278157 100644 (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;
     }