From 2983a79df5840d344194da662e34877483bda903 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Wed, 23 Dec 2009 04:55:08 +0000 Subject: 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 --- .../Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'MdeModulePkg/Library/DxeSecurityManagementLib') 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 ( -- cgit v1.2.3