Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1533440 > unrolled thread

Re: [PATCH 4/6] efi: Get the secure boot status [ver #2]

Started byDavid Howells <dhowells@redhat.com>
First post2016-11-30 18:00 +0100
Last post2016-11-30 18:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 4/6] efi: Get the secure boot status [ver #2] David Howells <dhowells@redhat.com> - 2016-11-30 18:00 +0100

#1533440 — Re: [PATCH 4/6] efi: Get the secure boot status [ver #2]

FromDavid Howells <dhowells@redhat.com>
Date2016-11-30 18:00 +0100
SubjectRe: [PATCH 4/6] efi: Get the secure boot status [ver #2]
Message-ID<sJgoG-9j-33@gated-at.bofh.it>
Mark Rutland <mark.rutland@arm.com> wrote:

> > +	boot_params->secure_boot = (efi_get_secureboot(sys_table) == 1);
> 
> In the arm stub's efi_entry(), we fail-safe, and assume secure boot for any
> non-zero status (including errors). e.g. 

Okay, given what Matthew said:

	A conforming implementation that supports secure boot should always
	return those variables without error. If they're not present (which is
	valid for x86 systems - many predate the feature) then assuming Secure
	Boot is disabled is correct. The question of what to do in the event
	of other errors is more open, but it wouldn't surprise me if there are
	implementations that return non-spec errors for missing variables
	under certain circumstances.

I think I have to assume the default to be that secure boot is *not* enabled
in the case of one of the variables we need to check is not being present.

As for getting other errors, I think we have to assume a buggy BIOS.  In this
case, I would also go with assuming we're not in secure boot.

Another possibility is to punt the decision and make it compile-time
configurable.

David

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web