File mokutil-Read-the-SbatLevelRT-variable-to-get-the-SBA.patch of Package mokutil.24583

From 854ee82dd11030c1cd8f8672319e19ad112408aa Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javierm@redhat.com>
Date: Fri, 9 Apr 2021 11:31:03 +0200
Subject: [PATCH] mokutil: Read the SbatLevelRT variable to get the SBAT
 entries

The SBAT data was previously in an EFI variable called "SBAT" but this
got renamed to "SbatLevelRT" in the following shim commit:

https://github.com/rhboot/shim/commit/27da4170f0f

Read the new variable instead of the old one that is not used anymore.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
---
 src/mokutil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: mokutil-0.3.0/src/mokutil.c
===================================================================
--- mokutil-0.3.0.orig/src/mokutil.c
+++ mokutil-0.3.0/src/mokutil.c
@@ -2448,7 +2448,7 @@ main (int argc, char *argv[])
 			ret = set_verbosity (verbosity);
 			break;
 		case LIST_SBAT:
-			ret = print_var_content ("SBAT", efi_guid_shim);
+			ret = print_var_content ("SbatLevelRT", efi_guid_shim);
 			break;
 		default:
 			print_help ();
openSUSE Build Service is sponsored by