diff options
author | Zhang, Chao B <chao.b.zhang@intel.com> | 2017-01-06 09:27:15 +0800 |
---|---|---|
committer | Zhang, Chao B <chao.b.zhang@intel.com> | 2017-01-06 09:57:05 +0800 |
commit | 42b85551615d62fb68f0dbd63c068445c4d3c511 (patch) | |
tree | effd3f9b71ae49e3376205450788714f744fbb46 | |
parent | 60c9860c43beb1f50ea0e86bccbc9d26aae1ae5b (diff) | |
download | edk2-platforms-42b85551615d62fb68f0dbd63c068445c4d3c511.tar.xz |
SecurityPkg: TcgPei: Sync TCG PP lifetime lock state
Sync TCG lifetime lock state after performing PP command.
Later logic checks such state.
Cc: Long Qin <qin.long@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Long Qin <qin.long@intel.com>
-rw-r--r-- | SecurityPkg/Tcg/TcgPei/TcgPei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/SecurityPkg/Tcg/TcgPei/TcgPei.c b/SecurityPkg/Tcg/TcgPei/TcgPei.c index 25724a6812..63807f44ff 100644 --- a/SecurityPkg/Tcg/TcgPei/TcgPei.c +++ b/SecurityPkg/Tcg/TcgPei/TcgPei.c @@ -1,7 +1,7 @@ /** @file
Initialize TPM device and measure FVs before handing off control to DXE.
-Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -591,6 +591,7 @@ PhysicalPresencePpiNotifyCallback ( // Lock TPM LifetimeLock is required, and LifetimeLock is not locked yet.
//
PhysicalPresenceValue = TPM_PHYSICAL_PRESENCE_LIFETIME_LOCK;
+ TpmPermanentFlags.physicalPresenceLifetimeLock = TRUE;
if (PcdGetBool (PcdPhysicalPresenceCmdEnable)) {
PhysicalPresenceValue |= TPM_PHYSICAL_PRESENCE_CMD_ENABLE;
|