dm-verity-loadpin.h 599 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_DM_VERITY_LOADPIN_H
  3. #define __LINUX_DM_VERITY_LOADPIN_H
  4. #include <linux/list.h>
  5. struct block_device;
  6. extern struct list_head dm_verity_loadpin_trusted_root_digests;
  7. struct dm_verity_loadpin_trusted_root_digest {
  8. struct list_head node;
  9. unsigned int len;
  10. u8 data[];
  11. };
  12. #if IS_ENABLED(CONFIG_SECURITY_LOADPIN_VERITY)
  13. bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev);
  14. #else
  15. static inline bool dm_verity_loadpin_is_bdev_trusted(struct block_device *bdev)
  16. {
  17. return false;
  18. }
  19. #endif
  20. #endif /* __LINUX_DM_VERITY_LOADPIN_H */