diff options
author | Linn Crosetto <[email protected]> | 2016-04-25 21:06:37 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-04-28 11:33:49 +0200 |
commit | 30d7bf034c034995f34dae265d96247f7f12044e (patch) | |
tree | 6e22db412011330983d1547beea3f5693ce1a05b /drivers/firmware/efi/libstub/efi-stub-helper.c | |
parent | 73a6492589c87cd56707c8ac19eec78236c2d576 (diff) |
efi/arm64: Check SetupMode when determining Secure Boot status
According to the UEFI specification (version 2.5 Errata A, page 87):
The platform firmware is operating in secure boot mode if the value of
the SetupMode variable is 0 and the SecureBoot variable is set to 1. A
platform cannot operate in secure boot mode if the SetupMode variable
is set to 1.
Check the value of the SetupMode variable when determining the state of
Secure Boot.
Plus also do minor cleanup, change sizeof() use to match kernel style guidelines.
Signed-off-by: Linn Crosetto <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
Reviewed-by: Ard Biesheuvel <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Roy Franz <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/firmware/efi/libstub/efi-stub-helper.c')
0 files changed, 0 insertions, 0 deletions