sd-boot: added shim signature/MOK validation (#5702)
authorMax Resch <mxre@users.noreply.github.com>
Tue, 9 May 2017 18:57:40 +0000 (20:57 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 9 May 2017 18:57:40 +0000 (20:57 +0200)
commitb2bb40ce9a4797728f384fa75e47829ab81303a1
tree0a8430fd6134fd70f363b5c72311754f2b123629
parent7ce63d7c9bc310c000687dc358a473a8ace00bf5
sd-boot: added shim signature/MOK validation (#5702)

Adds support for booting in a SecureBoot environment with shim as a
preloader. Install an appropriate UEFI security policy to check PE
signature of a chained kernel or UEFI application (using LoadImage())
against the MOK database maintained by shim, using shim's installed
BootServices.

Implementation details for installing the security policy are based on
code from the LinuxFoundation's SecureBoot PreLoader, part of efitools
licensed under LGPL 2.1

Current signed (by Microsoft) versions of shim (Versions 0.8 & 0.9)
so not install a security policy by themselves, future Versions of
shim might (a compile time switch exists in rectent git versions),
so in the future this PR might become unnecessary.
Makefile.am
src/boot/efi/boot.c
src/boot/efi/meson.build
src/boot/efi/shim.c [new file with mode: 0644]
src/boot/efi/shim.h [new file with mode: 0644]