0001
0002
0003 #ifndef __LINUX_DM_VERITY_LOADPIN_H
0004 #define __LINUX_DM_VERITY_LOADPIN_H
0005
0006 #include <linux/list.h>
0007
0008 struct block_device;
0009
0010 extern struct list_head dm_verity_loadpin_trusted_root_digests;
0011
0012 struct dm_verity_loadpin_trusted_root_digest {
0013 struct list_head node;
0014 unsigned int len;
0015 u8 data[];
0016 };
0017
0018 #if IS_ENABLED(CONFIG_SECURITY_LOADPIN_VERITY)
0019 bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev);
0020 #else
0021 static inline bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev)
0022 {
0023 return false;
0024 }
0025 #endif
0026
0027 #endif