From 3d6bd26e59a23af869540a93aae63a5a6548ef96 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 24 Feb 2025 13:57:33 +0800 Subject: [PATCH] Bootmgr (Linux): fix secure boot testing Fix #1584 --- src/detection/bootmgr/bootmgr_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detection/bootmgr/bootmgr_linux.c b/src/detection/bootmgr/bootmgr_linux.c index e1e11f967..27738f724 100644 --- a/src/detection/bootmgr/bootmgr_linux.c +++ b/src/detection/bootmgr/bootmgr_linux.c @@ -20,7 +20,7 @@ const char* ffDetectBootmgr(FFBootmgrResult* result) ffEfiFillLoadOption((FFEfiLoadOption *)&buffer[4], result); - if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) == 6) + if (ffReadFileData(FF_EFIVARS_PATH_PREFIX "SecureBoot-" FF_EFI_GLOBAL_GUID, sizeof(buffer), buffer) >= 5) result->secureBoot = buffer[4] == 1; return NULL;