efi: Lock down the kernel if booted in secure boot mode
authorBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2019 10:54:28 +0000 (11:54 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sat, 6 Feb 2021 08:23:52 +0000 (08:23 +0000)
commita504234f406a1335026ad0eaf0172c41a28c1ad3
tree5ece318f52e14dfff0a354d425b294ce9051cfd0
parent0149a14d0a5cb11af9010bde2badd6af5c5bf754
efi: Lock down the kernel if booted in secure boot mode

Based on an earlier patch by David Howells, who wrote the following
description:

> UEFI Secure Boot provides a mechanism for ensuring that the firmware will
> only load signed bootloaders and kernels.  Certain use cases may also
> require that all kernel modules also be signed.  Add a configuration option
> that to lock down the kernel - which includes requiring validly signed
> modules - if the kernel is secure-booted.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/lockdown
Gbp-Pq: Name efi-lock-down-the-kernel-if-booted-in-secure-boot-mo.patch
arch/x86/kernel/setup.c
drivers/firmware/efi/secureboot.c
include/linux/security.h
security/lockdown/Kconfig
security/lockdown/lockdown.c