summaryrefslogtreecommitdiff
path: root/include/linux/ima.h
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.ibm.com>2018-11-18 12:08:12 +0300
committerMimi Zohar <zohar@linux.ibm.com>2018-12-11 15:19:45 +0300
commit399574c64eaf94e82b7cf056978d7e68748c0f1d (patch)
tree73345c30d1bf8b57371261391e23ffbcddc33306 /include/linux/ima.h
parent4264f27a0815c46dfda9c9dd6d5f4abc1df04415 (diff)
downloadlinux-399574c64eaf94e82b7cf056978d7e68748c0f1d.tar.xz
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.h2
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