lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200904072905.25332-5-clin@suse.com>
Date:   Fri,  4 Sep 2020 15:29:03 +0800
From:   Chester Lin <clin@...e.com>
To:     ardb@...nel.org, catalin.marinas@....com, will@...nel.org,
        zohar@...ux.ibm.com, dmitry.kasatkin@...il.com, corbet@....net,
        mark.rutland@....com, vincenzo.frascino@....com,
        samitolvanen@...gle.com, masahiroy@...nel.org, mingo@...nel.org
CC:     linux-kernel@...r.kernel.org, linux-efi@...r.kernel.org,
        linux-arm-kernel@...ts.infradead.org,
        linux-integrity@...r.kernel.org, linux-doc@...r.kernel.org,
        jlee@...e.com, clin@...e.com
Subject: [PATCH 4/6] efi/arm: check secure boot status in efi init

set EFI_SECURE_BOOT flag when UEFI secure boot is eanbled on ARM.

Signed-off-by: Chester Lin <clin@...e.com>
---
 drivers/firmware/efi/arm-init.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/firmware/efi/arm-init.c b/drivers/firmware/efi/arm-init.c
index 71c445d20258..70f2eaf5fb1a 100644
--- a/drivers/firmware/efi/arm-init.c
+++ b/drivers/firmware/efi/arm-init.c
@@ -234,6 +234,9 @@ void __init efi_init(void)
 		return;
 	}
 
+	if (efi_secureboot_enabled_in_fdt())
+		set_bit(EFI_SECURE_BOOT, &efi.flags);
+
 	reserve_regions();
 	efi_esrt_init();
 
-- 
2.26.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ