Blame SOURCES/edk2-SecurityPkg-DxeImageVerificationHandler-remove-super.patch

6009e6
From d25dc10aa262b33794f16b75a0ada3aad507abe7 Mon Sep 17 00:00:00 2001
6009e6
From: Laszlo Ersek <lersek@redhat.com>
6009e6
Date: Fri, 31 Jan 2020 12:42:43 +0100
6009e6
Subject: [PATCH 07/12] SecurityPkg/DxeImageVerificationHandler: remove
6009e6
 superfluous Status setting
6009e6
MIME-Version: 1.0
6009e6
Content-Type: text/plain; charset=UTF-8
6009e6
Content-Transfer-Encoding: 8bit
6009e6
6009e6
RH-Author: Laszlo Ersek <lersek@redhat.com>
6009e6
Message-id: <20200131124248.22369-8-lersek@redhat.com>
6009e6
Patchwork-id: 93617
6009e6
O-Subject: [RHEL-8.2.0 edk2 PATCH 07/12] SecurityPkg/DxeImageVerificationHandler: remove superfluous Status setting
6009e6
Bugzilla: 1751993
6009e6
RH-Acked-by: Philippe Mathieu-Daudé <philmd@redhat.com>
6009e6
RH-Acked-by: Vitaly Kuznetsov <vkuznets@redhat.com>
6009e6
6009e6
After the final "IsVerified" check, we set "Status" to EFI_ACCESS_DENIED.
6009e6
This is superfluous, as "Status" already carries EFI_ACCESS_DENIED value
6009e6
there, from the top of the function. Remove the assignment.
6009e6
6009e6
Functionally, this change is a no-op.
6009e6
6009e6
Cc: Chao Zhang <chao.b.zhang@intel.com>
6009e6
Cc: Jian J Wang <jian.j.wang@intel.com>
6009e6
Cc: Jiewen Yao <jiewen.yao@intel.com>
6009e6
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2129
6009e6
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
6009e6
Message-Id: <20200116190705.18816-7-lersek@redhat.com>
6009e6
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
6009e6
[lersek@redhat.com: push with Mike's R-b due to Chinese New Year
6009e6
 Holiday: <https://edk2.groups.io/g/devel/message/53429>; msgid
6009e6
 <d3fbb76dabed4e1987c512c328c82810@intel.com>]
6009e6
(cherry picked from commit 12a4ef58a8b1f8610f6f7cd3ffb973f924f175fb)
6009e6
6009e6
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
6009e6
---
6009e6
 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c | 1 -
6009e6
 1 file changed, 1 deletion(-)
6009e6
6009e6
diff --git a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
6009e6
index 5f09a66..6ccce1f 100644
6009e6
--- a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
6009e6
+++ b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c
6009e6
@@ -1853,7 +1853,6 @@ DxeImageVerificationHandler (
6009e6
   if (IsVerified) {
6009e6
     return EFI_SUCCESS;
6009e6
   }
6009e6
-  Status = EFI_ACCESS_DENIED;
6009e6
   if (Action == EFI_IMAGE_EXECUTION_AUTH_SIG_FAILED || Action == EFI_IMAGE_EXECUTION_AUTH_SIG_FOUND) {
6009e6
     //
6009e6
     // Get image hash value as signature of executable.
6009e6
-- 
6009e6
1.8.3.1
6009e6