Ard Biesheuvel ff5ac61ee8 x86/ima: use correct identifier for SetupMode variable
The IMA arch code attempts to inspect the "SetupMode" EFI variable
by populating a variable called efi_SetupMode_name with the string
"SecureBoot" and passing that to the EFI GetVariable service, which
obviously does not yield the expected result.

Given that the string is only referenced a single time, let's get
rid of the intermediate variable, and pass the correct string as
an immediate argument. While at it, do the same for "SecureBoot".

Fixes: 399574c64eaf ("x86/ima: retry detecting secure boot mode")
Fixes: 980ef4d22a95 ("x86/ima: check EFI SetupMode too")
Cc: Matthew Garrett <mjg59@google.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Cc: stable@vger.kernel.org # v5.3
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
2020-02-11 14:42:37 -05:00
..
2020-02-09 12:11:12 -08:00
2019-11-28 11:16:43 -08:00
2020-01-16 17:09:18 +01:00
2020-01-09 14:40:03 +01:00
2019-11-26 19:25:25 -08:00
2019-11-27 11:42:01 -08:00
2019-11-12 16:21:15 +01:00
2019-11-12 16:21:15 +01:00
2019-11-16 11:24:05 +01:00
2019-11-28 11:16:43 -08:00
2019-06-24 19:19:24 +02:00
2020-01-08 19:40:51 +01:00
2020-01-08 19:40:51 +01:00
2020-01-08 19:40:51 +01:00
2020-01-23 10:41:20 -08:00
2020-01-08 19:40:51 +01:00
2020-02-09 12:11:12 -08:00