OSDN Git Service

x86/ima: Use EFI GetVariable only when available
authorArd Biesheuvel <ardb@kernel.org>
Thu, 23 Jan 2020 12:09:35 +0000 (13:09 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commit9a440391b560347bf5ee7cb96b63e7e91cedf66a
treecf404fe7823090701137e537accfe5fbd18cf9a6
parent9b42f76ad58b3f641197d031766c6979acf4b4a6
x86/ima: Use EFI GetVariable only when available

Replace the EFI runtime services check with one that tells us whether
EFI GetVariable() is implemented by the firmware.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/kernel/ima_arch.c