aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang-test.cpp
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.ibm.com>2019-04-01 13:39:44 -0400
committerShuah Khan <skhan@linuxfoundation.org>2019-04-17 15:32:44 -0600
commitb433a52aa28733e0650c5e83efdccfd0637b981a (patch)
tree1956c2d9916ef1e0698426828a770db82651c1ad /tools/perf/util/c++/clang-test.cpp
parent726ff75f294672d9accc57b2d5cc7e98e337d2c6 (diff)
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>
Diffstat (limited to 'tools/perf/util/c++/clang-test.cpp')
0 files changed, 0 insertions, 0 deletions