]> xenbits.xensource.com Git - ovmf.git/commitdiff
SecurityPkg/DxeImageVerificationLib: Add AUTH_SIG_NOT_FOUND Action
authorNhi Pham <nhi@os.amperecomputing.com>
Wed, 12 Apr 2023 09:21:49 +0000 (17:21 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 28 Apr 2023 07:03:56 +0000 (07:03 +0000)
Add the AUTH_SIG_NOT_FOUND Action to the Image Execution Info Table
when the Image is signed but signature is not allowed by DB and the
hash of image is not found in DB/DBX.

This is documented in the UEFI spec 2.10, table 32.5.

This issue is found by the SIE SCT with the error message as follows:
SecureBoot - TestImage1.bin in Image Execution Info Table with
SIG_NOT_FOUND. --FAILURE
B3A670AA-0FBA-48CA-9D01-0EE9700965A9
SctPkg/TestCase/UEFI/EFI/RuntimeServices/SecureBoot/BlackBoxTest/
ImageLoadingBBTest.c:1079:Status Success

Signed-off-by: Nhi Pham <nhi@os.amperecomputing.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c

index b3d40c21e9753025e8a86c3f2355b5ce3aacc7f2..5d8dbd5468794cd817ab7aca04991ee28be518f6 100644 (file)
@@ -1993,6 +1993,7 @@ DxeImageVerificationHandler (
       if (!EFI_ERROR (DbStatus) && IsFound) {\r
         IsVerified = TRUE;\r
       } else {\r
+        Action = EFI_IMAGE_EXECUTION_AUTH_SIG_NOT_FOUND;\r
         DEBUG ((DEBUG_INFO, "DxeImageVerificationLib: Image is signed but signature is not allowed by DB and %s hash of image is not found in DB/DBX.\n", mHashTypeStr));\r
       }\r
     }\r