From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Howells Subject: Re: [PATCH 7/7] efi: Print the secure boot status in x86 setup_arch() [ver #7] Date: Fri, 03 Feb 2017 16:29:15 +0000 Message-ID: <13569.1486139355@warthog.procyon.org.uk> References: <13531.1486139256@warthog.procyon.org.uk> <148587558696.4026.16034622623568539004.stgit@warthog.procyon.org.uk> <148587565838.4026.2835771993519594392.stgit@warthog.procyon.org.uk> <13280.1486138918@warthog.procyon.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: In-Reply-To: <13531.1486139256@warthog.procyon.org.uk> Content-ID: <13568.1486139355.1@warthog.procyon.org.uk> Sender: owner-linux-security-module@vger.kernel.org To: Ard Biesheuvel Cc: dhowells@redhat.com, Matt Fleming , "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-security-module , keyrings@vger.kernel.org, "linux-arm-kernel@lists.infradead.org" List-Id: linux-efi@vger.kernel.org David Howells wrote: > Ard Biesheuvel wrote: > > > Yes, but only if you are booting via UEFI, no? > > Why limit it so? Even if you don't boot via UEFI, the bootloader/kexec can > always set the secure-boot state on. > > > So perhaps use efi_enabled(EFI_BOOT) instead? > > I've no objection to that, given it incorporates a test of CONFIG_EFI. Feel free to just go ahead and change it in the patch. We can always take the check out later. David