]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg: TcgPei: Sync TCG PP lifetime lock state
authorZhang, Chao B <chao.b.zhang@intel.com>
Fri, 6 Jan 2017 01:27:15 +0000 (09:27 +0800)
committerZhang, Chao B <chao.b.zhang@intel.com>
Fri, 6 Jan 2017 01:57:05 +0000 (09:57 +0800)
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>
SecurityPkg/Tcg/TcgPei/TcgPei.c

index 25724a6812e7c411dd05344661059b3718771cb1..63807f44ff6963811879957fea182baf86837047 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Initialize TPM device and measure FVs before handing off control to DXE.\r
 \r
-Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials \r
 are licensed and made available under the terms and conditions of the BSD License \r
 which accompanies this distribution.  The full text of the license may be found at \r
@@ -591,6 +591,7 @@ PhysicalPresencePpiNotifyCallback (
     // Lock TPM LifetimeLock is required, and LifetimeLock is not locked yet. \r
     //\r
     PhysicalPresenceValue = TPM_PHYSICAL_PRESENCE_LIFETIME_LOCK;\r
+    TpmPermanentFlags.physicalPresenceLifetimeLock = TRUE;\r
 \r
     if (PcdGetBool (PcdPhysicalPresenceCmdEnable)) {\r
       PhysicalPresenceValue |= TPM_PHYSICAL_PRESENCE_CMD_ENABLE;\r