diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-23 04:55:08 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-12-23 04:55:08 +0000 |
commit | 2983a79df5840d344194da662e34877483bda903 (patch) | |
tree | dc2d3285fdaa11d0df698964192abf48926f5a61 /MdeModulePkg/Library/DxeSecurityManagementLib | |
parent | 8f635c36ad1059a064c747fd1f0e38814e7e7c29 (diff) | |
download | edk2-platforms-2983a79df5840d344194da662e34877483bda903.tar.xz |
Try to get the image form device path by FALSE and TRUE boot policy.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9589 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Library/DxeSecurityManagementLib')
-rw-r--r-- | MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c index a23b747e41..eac96b8886 100644 --- a/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c +++ b/MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c @@ -229,7 +229,16 @@ ExecuteSecurityHandlers ( // Try get file buffer when the handler requires image buffer.
//
if (FileBuffer == NULL) {
+ //
+ // Try to get image by FALSE boot policy for the exact boot file path.
+ //
FileBuffer = GetFileBufferByFilePath (FALSE, FilePath, &FileSize, &AuthenticationStatus);
+ if (FileBuffer == NULL) {
+ //
+ // Try to get image by TRUE boot policy for the inexact boot file path.
+ //
+ FileBuffer = GetFileBufferByFilePath (TRUE, FilePath, &FileSize, &AuthenticationStatus);
+ }
}
}
Status = mSecurityTable[Index].SecurityHandler (
|