------- 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
------- 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 zipl/boot/ stage3. bin 000000008000080 00a000000000000 000a00000000020 7a49504c s390/boot/ bzImage s390/boot/ bzImage 000000000000000 000000000000000 000000000000020 7a49504c
Checking secure boot trailer of file s390-tools/
* Read 32 bytes at offset 00003fe0:
0000c000000
* Success - stage3 trailer found
$ check_sb_trailer.sh linux/arch/
Checking secure boot trailer of file linux/arch/
* Read 32 bytes at offset 00ac0fe0:
00000000000
* Success - Linux kernel trailer found