Comment 10 for bug 1996071

Revision history for this message
bugproxy (bugproxy) wrote : Secure boot trailer test script

------- Comment on attachment From <email address hidden> 2022-11-11 03:46 EDT-------

Bash script to test if kernel image and zipl stage3.bin files contain the correct secure boot trailer.

Usage examples:

$ check_sb_trailer.sh s390-tools/zipl/boot/stage3.bin
Checking secure boot trailer of file s390-tools/zipl/boot/stage3.bin
  * Read 32 bytes at offset 00003fe0:
    0000c00000000000000800008000a000000000000000a000000000207a49504c
  * Success - stage3 trailer found
$ check_sb_trailer.sh linux/arch/s390/boot/bzImage
Checking secure boot trailer of file linux/arch/s390/boot/bzImage
  * Read 32 bytes at offset 00ac0fe0:
    000000000000000000000000000000000000000000000000000000207a49504c
  * Success - Linux kernel trailer found