execution table.\r
@retval EFI_ACCESS_DENIED The file specified by File and FileBuffer did not\r
authenticate, and the platform policy dictates that the DXE\r
- Foundation many not use File.\r
+ Foundation may not use File. The image has\r
+ been added to the file execution table.\r
\r
**/\r
EFI_STATUS\r
\r
Failed:\r
//\r
- // Policy decides to defer or reject the image; add its information in image executable information table.\r
+ // Policy decides to defer or reject the image; add its information in image\r
+ // executable information table in either case.\r
//\r
NameStr = ConvertDevicePathToText (File, FALSE, TRUE);\r
AddImageExeInfo (Action, NameStr, File, SignatureList, SignatureListSize);\r
FreePool (SignatureList);\r
}\r
\r
- return EFI_SECURITY_VIOLATION;\r
+ if (Policy == DEFER_EXECUTE_ON_SECURITY_VIOLATION) {\r
+ return EFI_SECURITY_VIOLATION;\r
+ }\r
+ return EFI_ACCESS_DENIED;\r
}\r
\r
/**\r