]> Git Repo - linux.git/commit - include/linux/efi.h
efi: Get and store the secure boot status
authorDavid Howells <[email protected]>
Mon, 6 Feb 2017 11:22:43 +0000 (11:22 +0000)
committerIngo Molnar <[email protected]>
Tue, 7 Feb 2017 09:42:10 +0000 (10:42 +0100)
commitde8cb458625c164bb3f93c4e415e479afce8fa9d
tree6da87e0a45c5d1e39bc5f46413123358734d8eba
parente58910cdc9f43cda2e52fcdf2fddbdc74e80b2f7
efi: Get and store the secure boot status

Get the firmware's secure-boot status in the kernel boot wrapper and stash
it somewhere that the main kernel image can find.

The efi_get_secureboot() function is extracted from the ARM stub and (a)
generalised so that it can be called from x86 and (b) made to use
efi_call_runtime() so that it can be run in mixed-mode.

For x86, it is stored in boot_params and can be overridden by the boot
loader or kexec.  This allows secure-boot mode to be passed on to a new
kernel.

Suggested-by: Lukas Wunner <[email protected]>
Signed-off-by: David Howells <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Matt Fleming <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
[ Small readability edits. ]
Signed-off-by: Ingo Molnar <[email protected]>
Documentation/x86/zero-page.txt
arch/x86/boot/compressed/eboot.c
arch/x86/include/uapi/asm/bootparam.h
arch/x86/kernel/asm-offsets.c
drivers/firmware/efi/libstub/Makefile
drivers/firmware/efi/libstub/arm-stub.c
drivers/firmware/efi/libstub/secureboot.c [new file with mode: 0644]
include/linux/efi.h
This page took 0.060005 seconds and 4 git commands to generate.