Re: [PATCH 6/6] efi: Add EFI_SECURE_BOOT bit [ver #2]

2016-11-23 Thread David Howells
David Howells wrote: > > > +#ifdef CONFIG_EFI > > > + if (boot_params.secure_boot) { > > > + set_bit(EFI_SECURE_BOOT, &efi.flags); > > > + pr_info("Secure boot enabled\n"); > > > + } > > > +#endif > > > + > > > > Section 20 of Documentation/CodingStyle recommends IS_ENABLED() > >

Re: [PATCH 6/6] efi: Add EFI_SECURE_BOOT bit [ver #2]

2016-11-23 Thread David Howells
Lukas Wunner wrote: > > +#ifdef CONFIG_EFI > > + if (boot_params.secure_boot) { > > + set_bit(EFI_SECURE_BOOT, &efi.flags); > > + pr_info("Secure boot enabled\n"); > > + } > > +#endif > > + > > Section 20 of Documentation/CodingStyle recommends IS_ENABLED() > instead of #

Re: [PATCH 6/6] efi: Add EFI_SECURE_BOOT bit [ver #2]

2016-11-23 Thread Lukas Wunner
On Wed, Nov 23, 2016 at 12:23:12AM +, David Howells wrote: > From: Josh Boyer > > UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit > that can be passed to efi_enabled() to find out whether secure boot is > enabled. > > This will be used by the SysRq+x handler, regi

[PATCH 6/6] efi: Add EFI_SECURE_BOOT bit [ver #2]

2016-11-22 Thread David Howells
From: Josh Boyer UEFI machines can be booted in Secure Boot mode. Add a EFI_SECURE_BOOT bit that can be passed to efi_enabled() to find out whether secure boot is enabled. This will be used by the SysRq+x handler, registered by the x86 arch, to find out whether secure boot mode is enabled so th