grub-lakitu: BACKPORT: FROMGIT: linuxefi: fail kernel validation without shim protocol.
If certificates that signed grub are installed into db, grub can be
booted directly. It will then boot any kernel without signature
validation. The booted kernel will think it was booted in secureboot
mode and will implement lockdown, yet it could have been tampered.
This version of the patch skips calling verification, when booted
without secureboot. And is indented with gnu ident.
Reported-by: Mathieu Trudel-Lapierre <firstname.lastname@example.org>
Signed-off-by: Dimitri John Ledkov <email@example.com>
(cherry picked from commit bb240087ce9ef9a62936fd6c1241df65a1e42d01
Signed-off-by: Robert Kolchmeyer <firstname.lastname@example.org>
- grub-core/loader/i386/efi/linux.c: Removed TPM measurement from patch
context. Our grub does TPM measurements differently. I also needed to
include an additional header in this file.
TEST=validation test (cl/325153880)
4 files changed