efi-readvar: Use Shadowed Mok Variables
The Mok variables are shadowed in the runtime as MokListRT and
MokListXRT, so print out the values of those variables.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
diff --git a/efi-readvar.c b/efi-readvar.c
index 816b306..acd8a01 100644
--- a/efi-readvar.c
+++ b/efi-readvar.c
@@ -115,9 +115,11 @@
int
main(int argc, char *argv[])
{
- char *variables[] = { "PK", "KEK", "db", "dbx" , "MokList" };
+ char *variables[] = { "PK", "KEK", "db", "dbx", "MokListRT",
+ "MokListXRT" };
char *progname = argv[0], *var = NULL, *file = NULL;
- EFI_GUID *owners[] = { &GV_GUID, &GV_GUID, &SIG_DB, &SIG_DB, &MOK_OWNER };
+ EFI_GUID *owners[] = { &GV_GUID, &GV_GUID, &SIG_DB, &SIG_DB,
+ &MOK_OWNER, &MOK_OWNER };
int i, found = 0, sig = -1, entry = -1, fd;
while (argc > 1 && argv[1][0] == '-') {