mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-26 20:44:32 +08:00
efi: Print the secure boot status in x86 setup_arch()
Print the secure boot status in the x86 setup_arch() function, but otherwise do nothing more for now. More functionality will be added later, but this at least allows for testing. Signed-off-by: David Howells <dhowells@redhat.com> [ Use efi_enabled() instead of IS_ENABLED(CONFIG_EFI). ] Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Matt Fleming <matt@codeblueprint.co.uk> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1486380166-31868-7-git-send-email-ard.biesheuvel@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
f3cf6f7434
commit
9661b33204
@ -1176,6 +1176,20 @@ void __init setup_arch(char **cmdline_p)
|
||||
/* Allocate bigger log buffer */
|
||||
setup_log_buf(1);
|
||||
|
||||
if (efi_enabled(EFI_BOOT)) {
|
||||
switch (boot_params.secure_boot) {
|
||||
case efi_secureboot_mode_disabled:
|
||||
pr_info("Secure boot disabled\n");
|
||||
break;
|
||||
case efi_secureboot_mode_enabled:
|
||||
pr_info("Secure boot enabled\n");
|
||||
break;
|
||||
default:
|
||||
pr_info("Secure boot could not be determined\n");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
reserve_initrd();
|
||||
|
||||
acpi_table_upgrade();
|
||||
|
Loading…
Reference in New Issue
Block a user