Thread (28 messages) 28 messages, 5 authors, 2016-11-30

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

From: Mark Rutland <mark.rutland@arm.com>
Date: 2016-11-23 13:43:05
Also in: lkml

On Wed, Nov 23, 2016 at 11:25:57AM +0000, David Howells wrote:
Mark Rutland [off-list ref] wrote:
quoted
	int secure_boot = efi_get_secureboot(sys_table);

	if (secure_boot > 0)
		pr_efi(sys_table, "UEFI Secure Boot is enabled.\n");
	if (secure_boot < 0)
		pr_efi_err(sys_table,
			"could not determine UEFI Secure Boot status.\n");
In which case, should this be moved into efi_get_secureboot() and it return a
bool?
That would make sense to me, provided we're only likely to call that
once (and only log once).

I guess it would also make sense to change the latter case to soemthing
like:
	
	Could not determine UEFI Secure Boot status. Assuming enabled.

... so as to make it clear what the effect is.

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help