Thread (146 messages) 146 messages, 15 authors, 2017-12-07

[PATCH 26/27] efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode

From: James Morris <hidden>
Date: 2017-10-21 02:19:35
Also in: linux-efi, lkml

On Thu, 19 Oct 2017, David Howells wrote:
quoted hunk ↗ jump to hunk
+	if (efi_enabled(EFI_BOOT)) {
+		switch (mode) {
+		case efi_secureboot_mode_disabled:
+			pr_info("Secure boot disabled\n");
+			break;
+		case efi_secureboot_mode_enabled:
+			set_bit(EFI_SECURE_BOOT, &efi.flags);
+			pr_info("Secure boot enabled\n");
+			break;
+		default:
+			pr_info("Secure boot could not be determined\n");
Perhaps make this pr_warning and include the unknown mode value?

-- 
James Morris
[off-list ref]

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help