diff options
author | Mimi Zohar <zohar@linux.ibm.com> | 2018-11-18 04:08:12 -0500 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2018-12-11 07:19:45 -0500 |
commit | 399574c64eaf94e82b7cf056978d7e68748c0f1d (patch) | |
tree | 73345c30d1bf8b57371261391e23ffbcddc33306 /include/linux/ima.h | |
parent | 4264f27a0815c46dfda9c9dd6d5f4abc1df04415 (diff) | |
download | linux-399574c64eaf94e82b7cf056978d7e68748c0f1d.tar.gz linux-399574c64eaf94e82b7cf056978d7e68748c0f1d.tar.bz2 linux-399574c64eaf94e82b7cf056978d7e68748c0f1d.zip |
x86/ima: retry detecting secure boot mode
The secure boot mode may not be detected on boot for some reason (eg.
buggy firmware). This patch attempts one more time to detect the
secure boot mode.
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'include/linux/ima.h')
-rw-r--r-- | include/linux/ima.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ima.h b/include/linux/ima.h index 5ab9134d4fd7..b5e16b8c50b7 100644 --- a/include/linux/ima.h +++ b/include/linux/ima.h @@ -30,7 +30,7 @@ extern void ima_post_path_mknod(struct dentry *dentry); extern void ima_add_kexec_buffer(struct kimage *image); #endif -#ifdef CONFIG_X86 +#if defined(CONFIG_X86) && defined(CONFIG_EFI) extern bool arch_ima_get_secureboot(void); extern const char * const *arch_get_ima_policy(void); #else |