]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/kexec: remove broken EFI_VARS secure boot fallback check
authorArd Biesheuvel <ardb@kernel.org>
Wed, 8 Jun 2022 07:54:47 +0000 (09:54 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 08:19:22 +0000 (10:19 +0200)
commit5ec97e22f02a0f2f05f6651c04ae9ab14c818b56
tree5c8c520e32aa35519ae7a86fd00652e5b896f968
parent7c0123e8d758f2f5b4e7b5e2d91dd151d8a561c7
selftests/kexec: remove broken EFI_VARS secure boot fallback check

Commit 4d8e631ffd408660 ("selftests/kexec: update get_secureboot_mode")
refactored the code that discovers the EFI secure boot mode so it only
depends on either the efivars pseudo filesystem or the efivars sysfs
interface, but never both.

However, the latter version was not implemented correctly, given the
fact that the local 'efi_vars' variable never assumes a value. This
means the fallback has been dead code ever since it was introduced.

So let's drop the fallback altogether. The sysfs interface has been
deprecated for ~10 years now, and is only enabled on x86 to begin with,
so it is time to get rid of it entirely.

Reviewed-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
tools/testing/selftests/kexec/kexec_common_lib.sh