mirror of https://github.com/acidanthera/audk.git
SecurityPkg: Tcg2Dxe: Measure DBT into PCR[7]
Measure DBT into PCR[7] in initial measurement phase if present and
not empty by following TCG PC Client PFP 00.49.
The previous patch according to 00.21 is removed
1404e3a150
Cc: Star Zeng <star.zeng@intel.com>
Cc: Yao Jiewen <jiewen.yao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Chao Zhang <chao.b.zhang@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Yao Jiewen <jiewen.yao@intel.com>
This commit is contained in:
parent
fe13f92b6f
commit
400b0940c8
|
@ -115,7 +115,6 @@ VARIABLE_TYPE mVariableType[] = {
|
|||
{EFI_KEY_EXCHANGE_KEY_NAME, &gEfiGlobalVariableGuid},
|
||||
{EFI_IMAGE_SECURITY_DATABASE, &gEfiImageSecurityDatabaseGuid},
|
||||
{EFI_IMAGE_SECURITY_DATABASE1, &gEfiImageSecurityDatabaseGuid},
|
||||
{EFI_IMAGE_SECURITY_DATABASE2, &gEfiImageSecurityDatabaseGuid},
|
||||
};
|
||||
|
||||
EFI_HANDLE mImageHandle;
|
||||
|
@ -2137,6 +2136,24 @@ MeasureAllSecureVariables (
|
|||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Measure DBT if present and not empty
|
||||
//
|
||||
Status = GetVariable2 (EFI_IMAGE_SECURITY_DATABASE2, &gEfiImageSecurityDatabaseGuid, &Data, &DataSize);
|
||||
if (!EFI_ERROR(Status)) {
|
||||
Status = MeasureVariable (
|
||||
7,
|
||||
EV_EFI_VARIABLE_DRIVER_CONFIG,
|
||||
EFI_IMAGE_SECURITY_DATABASE2,
|
||||
&gEfiImageSecurityDatabaseGuid,
|
||||
Data,
|
||||
DataSize
|
||||
);
|
||||
FreePool(Data);
|
||||
} else {
|
||||
DEBUG((DEBUG_INFO, "Skip measuring variable %s since it's deleted\n", EFI_IMAGE_SECURITY_DATABASE2));
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue