]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c
Try to get the image form device path by FALSE and TRUE boot policy.
[mirror_edk2.git] / MdeModulePkg / Library / DxeSecurityManagementLib / DxeSecurityManagementLib.c
index a23b747e416ac44b2102cf389d28b9f1683efc87..eac96b88864ba78c2fd59725151b06e029b4fb01 100644 (file)
@@ -229,7 +229,16 @@ ExecuteSecurityHandlers (
       // Try get file buffer when the handler requires image buffer.\r
       //\r
       if (FileBuffer == NULL) {\r
+        //\r
+        // Try to get image by FALSE boot policy for the exact boot file path.\r
+        //\r
         FileBuffer = GetFileBufferByFilePath (FALSE, FilePath, &FileSize, &AuthenticationStatus);\r
+        if (FileBuffer == NULL) {\r
+          //\r
+          // Try to get image by TRUE boot policy for the inexact boot file path.\r
+          //\r
+          FileBuffer = GetFileBufferByFilePath (TRUE, FilePath, &FileSize, &AuthenticationStatus);\r
+        }\r
       }\r
     }\r
     Status = mSecurityTable[Index].SecurityHandler (\r