When new FV is installed, VerifyFv() should be invoked to do security checking for this FV.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5785 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2008-09-03 06:25:35 +00:00
parent d1bc30258b
commit 6a1ae84a26
1 changed files with 8 additions and 0 deletions

View File

@ -307,6 +307,7 @@ PeiInitializeFv (
@param Ppi Address of the PPI that was installed.
@retval EFI_SUCCESS The FV Info is registered into PeiCore private data structure.
@return if not EFI_SUCESS, fail to verify FV.
**/
EFI_STATUS
@ -342,6 +343,13 @@ FirmwareVolmeInfoPpiNotifyCallback (
return EFI_SUCCESS;
}
}
Status = VerifyFv ((EFI_FIRMWARE_VOLUME_HEADER*)Fv->FvInfo);
if (EFI_ERROR(Status)) {
DEBUG ((EFI_D_ERROR, "Fail to verify FV which address is 0x%11p", (VOID *) Fv->FvInfo));
return Status;
}
PrivateData->Fv[PrivateData->FvCount++].FvHeader = (EFI_FIRMWARE_VOLUME_HEADER*)Fv->FvInfo;
//