]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ukify: show .sbom sections as binary
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 13 Nov 2023 14:13:30 +0000 (15:13 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 13 Nov 2023 16:33:07 +0000 (16:33 +0000)
Fixup for e87dec82bec6eff015b368b3c746810d684fc6af:
I misunderstood the format. It's actually CBOR, i.e. some binary format.
When trying to show show text we would first check if it's valid UTF-8,
so we would handle this gracefully, i.e. emit a warning and not print
the contents.

src/ukify/ukify.py

index 2ab9c5894ce4fd6a2d5dc413f6f43fd1d2c38c5e..08f505a27157a5a2fa2aaebb5dfe6e9d832fdf16 100755 (executable)
@@ -265,7 +265,7 @@ DEFAULT_SECTIONS_TO_SHOW = {
         '.pcrpkey'  : 'text',
         '.pcrsig'   : 'text',
         '.sbat'     : 'text',
-        '.sbom'     : 'text',
+        '.sbom'     : 'binary',
 }
 
 @dataclasses.dataclass