sefltest/ima: support appended signatures (modsig)
authorMimi Zohar <zohar@linux.ibm.com>
Sun, 25 Aug 2019 13:58:16 +0000 (09:58 -0400)
committerMimi Zohar <zohar@linux.ibm.com>
Thu, 29 Aug 2019 16:45:30 +0000 (12:45 -0400)
commitcbc0425d3dd370a6f0bf23589dc7b6955a53a9ce
tree0d3fe5ed0859d442d225a26f6b25550f86f2c686
parent556d971bdae643de4cd7e2976e14f70ca2a3061d
sefltest/ima: support appended signatures (modsig)

In addition to the PE/COFF and IMA xattr signatures, the kexec kernel
image can be signed with an appended signature, using the same
scripts/sign-file tool that is used to sign kernel modules.

This patch adds support for detecting a kernel image signed with an
appended signature and updates the existing test messages
appropriately.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Reviewed-by: Jordan Hand <jorhand@linux.microsoft.com> (x86_64 QEMU)
Tested-by: Jordan Hand <jorhand@linux.microsoft.com> (x86_64 QEMU)
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
tools/testing/selftests/kexec/test_kexec_file_load.sh