test/py: efi_secboot: add a test for a forged signed image
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Tue, 5 Jul 2022 05:48:15 +0000 (14:48 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Jul 2022 12:37:16 +0000 (14:37 +0200)
commit8fb9dbdea716ab764c7a3c544569f903cbfdd744
treee6a9774971bd0e2a1b49eedbf17401a70c796753
parent634f6b2fb1056021fba603ccb7488d1864787576
test/py: efi_secboot: add a test for a forged signed image

In this test case, a image binary, helloworld.efi.signed, is willfully
modified to print a corrupted message while the signature itself is
unchanged.

This binary must be rejected under secure boot mode.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
test/py/tests/test_efi_secboot/conftest.py
test/py/tests/test_efi_secboot/forge_image.sh [new file with mode: 0644]
test/py/tests/test_efi_secboot/test_signed.py