]> www.infradead.org Git - users/jedix/linux-maple.git/commit
efi: Disable secure boot if shim is in insecure mode
authorJosh Boyer <jwboyer@redhat.com>
Wed, 6 Feb 2013 00:25:05 +0000 (19:25 -0500)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 10 Aug 2015 16:24:07 +0000 (09:24 -0700)
commit254a2feb4e66b3a75eb824078a984a511271f862
tree058b0a05723776cded7088df9089b9d1ee12e943
parent6189d0bc2697ace4df1b8d6432185de8b6ad2626
efi: Disable secure boot if shim is in insecure mode

Orabug: 21539498

A user can manually tell the shim boot loader to disable validation of
images it loads.  When a user does this, it creates a UEFI variable called
MokSBState that does not have the runtime attribute set.  Given that the
user explicitly disabled validation, we can honor that and not enable
secure boot mode if that variable is set.

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
arch/x86/boot/compressed/eboot.c