SecurityPkg OpalPasswordDxe: Use PP actions to enable BlockSID.
Update the implementation, use physical presence defined actions to update the BlockSid related status. Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
@@ -416,28 +416,15 @@ ReadyToBootCallback (
|
||||
IN VOID *Context
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
OPAL_DRIVER_DEVICE* Itr;
|
||||
TCG_RESULT Result;
|
||||
OPAL_EXTRA_INFO_VAR OpalExtraInfo;
|
||||
UINTN DataSize;
|
||||
OPAL_SESSION Session;
|
||||
OPAL_DRIVER_DEVICE *Itr;
|
||||
TCG_RESULT Result;
|
||||
OPAL_SESSION Session;
|
||||
UINT32 PpStorageFlag;
|
||||
|
||||
gBS->CloseEvent (Event);
|
||||
|
||||
DataSize = sizeof (OPAL_EXTRA_INFO_VAR);
|
||||
Status = gRT->GetVariable (
|
||||
OPAL_EXTRA_INFO_VAR_NAME,
|
||||
&gOpalExtraInfoVariableGuid,
|
||||
NULL,
|
||||
&DataSize,
|
||||
&OpalExtraInfo
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (OpalExtraInfo.EnableBlockSid == TRUE) {
|
||||
PpStorageFlag = TcgPhysicalPresenceStorageLibReturnStorageFlags();
|
||||
if ((PpStorageFlag & TCG_BIOS_STORAGE_MANAGEMENT_FLAG_ENABLE_BLOCK_SID) != 0) {
|
||||
//
|
||||
// Send BlockSID command to each Opal disk
|
||||
//
|
||||
|
Reference in New Issue
Block a user