mirror of https://github.com/acidanthera/audk.git
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:
parent
d1bc30258b
commit
6a1ae84a26
|
@ -307,6 +307,7 @@ PeiInitializeFv (
|
||||||
@param Ppi Address of the PPI that was installed.
|
@param Ppi Address of the PPI that was installed.
|
||||||
|
|
||||||
@retval EFI_SUCCESS The FV Info is registered into PeiCore private data structure.
|
@retval EFI_SUCCESS The FV Info is registered into PeiCore private data structure.
|
||||||
|
@return if not EFI_SUCESS, fail to verify FV.
|
||||||
|
|
||||||
**/
|
**/
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -342,6 +343,13 @@ FirmwareVolmeInfoPpiNotifyCallback (
|
||||||
return EFI_SUCCESS;
|
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;
|
PrivateData->Fv[PrivateData->FvCount++].FvHeader = (EFI_FIRMWARE_VOLUME_HEADER*)Fv->FvInfo;
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue