diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-11-13 10:41:52 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-11-13 10:59:30 +0100 |
commit | e87dec82bec6eff015b368b3c746810d684fc6af (patch) | |
tree | 4f7efa810313c34c60414cc86fb397df83548b91 /src/ukify/ukify.py | |
parent | ukify: print a more readable synopsis in --help (diff) | |
download | systemd-e87dec82bec6eff015b368b3c746810d684fc6af.tar.xz systemd-e87dec82bec6eff015b368b3c746810d684fc6af.zip |
ukify: show .sbom sections as text
There are draft proposals to embed SBOM metadata in the .sbom section of PE
binaries [1], in the coSWID XML format. Some details of how this is actually
implemented might change, but it seems very likely that both section name and
it being text will stay. Let's show the section as text to make such binaries
easier to inspect. ([1] recommends using 'objcopy -j .sbom' which isn't
particularly readable.) Once there's more standarization of the actual
format, we can add pretty-printing and/or syntax highlighting.
[1] https://uefi.org/blog/firmware-sbom-proposal
[2] https://www.ietf.org/archive/id/draft-ietf-sacm-coswid-21.html
Diffstat (limited to 'src/ukify/ukify.py')
-rwxr-xr-x | src/ukify/ukify.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 8006624f0a..2ab9c5894c 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -265,6 +265,7 @@ DEFAULT_SECTIONS_TO_SHOW = { '.pcrpkey' : 'text', '.pcrsig' : 'text', '.sbat' : 'text', + '.sbom' : 'text', } @dataclasses.dataclass |