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>
Sun, 31 Dec 2023 15:46:35 +0000 (16:46 +0100)
commit2d1ef72d3f95841fd8660a09cf4e45f36f3dfa56
tree3c00e7db46b26227194bdf41c6d7b01757938c74
parent9bdc66a3d1eaedae9cdfe71055504616a84ebb2a
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