linux_dsm_epyc7002/tools/testing/selftests/kexec
Mimi Zohar b433a52aa2 selftests/kexec: update get_secureboot_mode
The get_secureboot_mode() function unnecessarily requires both
CONFIG_EFIVAR_FS and CONFIG_EFI_VARS to be enabled to determine if the
system is booted in secure boot mode.  On some systems the old EFI
variable support is not enabled or, possibly, even implemented.

This patch first checks the efivars filesystem for the SecureBoot and
SetupMode flags, but falls back to using the old EFI variable support.

The "secure_boot_file" and "setup_mode_file" couldn't be quoted due to
globbing.  This patch also removes the globbing.

Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2019-04-17 15:32:44 -06:00
..
config selftests/kexec: Add missing '=y' to config options 2019-04-17 15:32:29 -06:00
kexec_common_lib.sh selftests/kexec: update get_secureboot_mode 2019-04-17 15:32:44 -06:00
Makefile selftests/kexec: kexec_file_load syscall test 2019-04-17 15:32:24 -06:00
test_kexec_file_load.sh selftests/kexec: check kexec_load and kexec_file_load are enabled 2019-04-17 15:32:34 -06:00
test_kexec_load.sh selftests/kexec: make kexec_load test independent of IMA being enabled 2019-04-17 15:32:40 -06:00