]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9e249c296039f6cb8fa2650e661f0014f780675
tree0d3fe5ed0859d442d225a26f6b25550f86f2c686
parent0160b84b5a0e961bda70f4095a7e10f7a7ea265a
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