grub2/grub-core/kern/efi
Zhang Boyang 03d18df312 kern/efi/sb: Enforce verification of font files
As a mitigation and hardening measure enforce verification of font
files. Then only trusted font files can be load. This will reduce the
attack surface at cost of losing the ability of end-users to customize
fonts if e.g. UEFI Secure Boot is enabled. Vendors can always customize
fonts because they have ability to pack fonts into their GRUB bundles.

This goal is achieved by:

  * Removing GRUB_FILE_TYPE_FONT from shim lock verifier's
    skip-verification list.

  * Adding GRUB_FILE_TYPE_FONT to lockdown verifier's defer-auth list,
    so font files must be verified by a verifier before they can be loaded.

Suggested-by: Daniel Kiper <daniel.kiper@oracle.com>
Signed-off-by: Zhang Boyang <zhangboyang.id@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-11-12 22:51:49 +00:00
..
acpi.c tsc: Use alternative delay sources whenever appropriate. 2015-11-27 11:39:55 +01:00
efi.c grub_error: Use format code PRIuGRUB_SIZE for variables of type grub_size_t 2021-03-10 14:50:44 +01:00
fdt.c efi: Move fdt helper into own file 2016-11-24 10:09:24 +01:00
init.c kern/efi: Add initial stack protector implementation 2021-03-02 15:54:19 +01:00
mm.c Add "linuxefi" loader which avoids ExitBootServices 2021-09-27 20:09:34 +01:00
sb.c kern/efi/sb: Enforce verification of font files 2022-11-12 22:51:49 +00:00