• David Howells's avatar
    efi: Get the secure boot status · 833cda77
    David Howells authored
    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: default avatarLukas Wunner <lukas@wunner.de>
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    833cda77
eboot.c 26.7 KB