summaryrefslogtreecommitdiff
path: root/include/linux/dm-verity-loadpin.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2022-06-27 18:35:26 +0300
committerKees Cook <keescook@chromium.org>2022-07-08 20:47:07 +0300
commit231af4709018a8e4f20e511da4b6506346d662d3 (patch)
treed29bf722ababac72ed275de908afe639a5780aca /include/linux/dm-verity-loadpin.h
parent3f805f8cc23ba35679dd01446929292911c2b469 (diff)
downloadlinux-231af4709018a8e4f20e511da4b6506346d662d3.tar.xz
dm: verity-loadpin: Use CONFIG_SECURITY_LOADPIN_VERITY for conditional compilation
The verity glue for LoadPin is only needed when CONFIG_SECURITY_LOADPIN_VERITY is set, use this option for conditional compilation instead of the combo of CONFIG_DM_VERITY and CONFIG_SECURITY_LOADPIN. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Acked-by: Mike Snitzer <snitzer@kernel.org> Link: https://lore.kernel.org/lkml/20220627083512.v7.3.I5aca2dcc3b06de4bf53696cd21329dce8272b8aa@changeid Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/dm-verity-loadpin.h')
-rw-r--r--include/linux/dm-verity-loadpin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dm-verity-loadpin.h b/include/linux/dm-verity-loadpin.h
index fb695ecaa5d5..552b817ab102 100644
--- a/include/linux/dm-verity-loadpin.h
+++ b/include/linux/dm-verity-loadpin.h
@@ -15,7 +15,7 @@ struct dm_verity_loadpin_trusted_root_digest {
u8 data[];
};
-#if IS_ENABLED(CONFIG_SECURITY_LOADPIN) && IS_BUILTIN(CONFIG_DM_VERITY)
+#if IS_ENABLED(CONFIG_SECURITY_LOADPIN_VERITY)
bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev);
#else
static inline bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev)