Skip to content

Add UEFI Secure Boot detection and report the status to Linux

Javier Martinez Canillas grub-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9i386: Don't include <grub/cpu/linux.h> in coreboot and ieee1275 startup.Sgrub-core/kern/i386/coreboot/startup.S grub-core/kern/i386/ieee1275/startup.S+0 -20 replies
2/9include/grub/i386/linux.h: Include missing <grub/types.h> headerinclude/grub/i386/linux.h+2 -00 replies
3/9arm/term: Fix linking error due multiple ps2_state definitionsgrub-core/term/arm/cros.c grub-core/term/arm/pl050.c+2 -20 replies
4/9efi: Make shim_lock GUID and protocol type publicgrub-core/commands/efi/shim_lock.c include/grub/efi/api.h+15 -160 replies
5/9efi: Return grub_efi_status_t from grub_efi_get_variable()grub-core/commands/efi/efifwsetup.c grub-core/kern/efi/efi.c grub-core/video/efi_gop.c +1 more+18 -150 replies
6/9efi: Add a function to read EFI variables with attributesgrub-core/kern/efi/efi.c include/grub/efi/efi.h+18 -30 replies
7/9efi: Add secure boot detectiongrub-core/Makefile.am grub-core/Makefile.core.def grub-core/kern/efi/sb.c +1 more+151 -00 replies
8/9efi: Only register shim_lock verifier if shim_lock protocol is found and SB enabledgrub-core/commands/efi/shim_lock.c+9 -75 replies
9/9loader/linux: Report the UEFI Secure Boot status to the Linux kernelgrub-core/loader/i386/linux.c include/grub/i386/linux.h+11 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Add UEFI Secure Boot detection and report the status to Linux

This patch series adds support for the GRUB to detect the UEFI Secure Boot status using the SecureBoot and SetupMode EFI variables. It also reports this to Linux by setting the .secure_boot field of struct boot_params.

Besides that, it contains some cleanups and fixes mostly around EFI support.

Best regards,
Javier

Daniel Kiper (5):
efi: Make shim_lock GUID and protocol type public
efi: Return grub_efi_status_t from grub_efi_get_variable()
efi: Add a function to read EFI variables with attributes
efi: Add secure boot detection
loader/linux: Report the UEFI Secure Boot status to the Linux kernel

Javier Martinez Canillas (4):
i386: Don't include <grub/cpu/linux.h> in coreboot and ieee1275
startup.S
include/grub/i386/linux.h: Include missing <grub/types.h> header arm/term: Fix linking error due multiple ps2_state definitions
efi: Only register shim_lock verifier if shim_lock protocol is found
and SB enabled

 grub-core/Makefile.am                  |   1 +
 grub-core/Makefile.core.def            |   1 +
 grub-core/commands/efi/efifwsetup.c    |   8 +-
 grub-core/commands/efi/shim_lock.c     |  28 ++-----
 grub-core/kern/efi/efi.c               |  30 +++++--
 grub-core/kern/efi/sb.c                | 109 +++++++++++++++++++++++++
 grub-core/kern/i386/coreboot/startup.S |   1 -
 grub-core/kern/i386/ieee1275/startup.S |   1 -
 grub-core/loader/i386/linux.c          |   6 +-
 grub-core/term/arm/cros.c              |   2 +-
 grub-core/term/arm/pl050.c             |   2 +-
 grub-core/video/efi_gop.c              |   2 +-
 include/grub/efi/api.h                 |  19 ++++-
 include/grub/efi/efi.h                 |  12 ++-
 include/grub/efi/sb.h                  |  40 +++++++++
 include/grub/i386/linux.h              |  10 ++-
 16 files changed, 225 insertions(+), 47 deletions(-)
 create mode 100644 grub-core/kern/efi/sb.c
 create mode 100644 include/grub/efi/sb.h
Signature · 1 line
2.28.0