[File] [PATCH] Add ESL SHA256 Test

Benedikt Radtke benediktradtke at gmail.com
Sat Jan 24 15:56:49 UTC 2026


Hey,

I prowled through file's code base because Ubuntu24's file fails to identify EFI Signature List files. I realized too late that noble ships file 5.45, and incorrectly briefly assumed that the guids in the Magdir were defined in the wrong endianess. I added a test file assuming that it would fail, but 5.46+ correctly identifies ESLs.

The passing test is attached, since I figured you might want to merge it. It might save someone from going into the same rabbit hole, although more recent versions of Ubuntu have a more recent version of file.

Kind regards,
Benni
-------------- next part --------------
From 60af76abfd9bee31b6c1ba46f950f68ab89ffe2b Mon Sep 17 00:00:00 2001
From: Benedikt Radtke <benediktradtke at gmail.com>
Date: Sat, 24 Jan 2026 16:45:12 +0100
Subject: [PATCH] Add ESL SHA256 test

---
 tests/efi-signature-list-sha256.result   |   1 +
 tests/efi-signature-list-sha256.testfile | Bin 0 -> 76 bytes
 2 files changed, 1 insertion(+)
 create mode 100644 tests/efi-signature-list-sha256.result
 create mode 100755 tests/efi-signature-list-sha256.testfile

diff --git a/tests/efi-signature-list-sha256.result b/tests/efi-signature-list-sha256.result
new file mode 100644
index 00000000..04c597e3
--- /dev/null
+++ b/tests/efi-signature-list-sha256.result
@@ -0,0 +1 @@
+EFI Signature List, SHA256, total size: 76 bytes
\ No newline at end of file
diff --git a/tests/efi-signature-list-sha256.testfile b/tests/efi-signature-list-sha256.testfile
new file mode 100755
index 0000000000000000000000000000000000000000..9faf68ee8af050450d0138880570d79e97bfb4a5
GIT binary patch
literal 76
zcmY!rJ95w`V3Na{m5x8nCOd2RFhGC-kP28Go8b0<!FlyI+ZzIRyOld~Qp2wHHZ1z7
cC}KW2&{awIUaDAV>{;X8zWaXeexUgU017xBGXMYp

literal 0
HcmV?d00001

-- 
2.43.0



More information about the File mailing list