ipe.h 662 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2020-2024 Microsoft Corporation. All rights reserved.
  4. */
  5. #ifndef _IPE_H
  6. #define _IPE_H
  7. #ifdef pr_fmt
  8. #undef pr_fmt
  9. #endif
  10. #define pr_fmt(fmt) "ipe: " fmt
  11. #include <linux/lsm_hooks.h>
  12. struct ipe_superblock *ipe_sb(const struct super_block *sb);
  13. extern bool ipe_enabled;
  14. #ifdef CONFIG_IPE_PROP_DM_VERITY
  15. struct ipe_bdev *ipe_bdev(struct block_device *b);
  16. #endif /* CONFIG_IPE_PROP_DM_VERITY */
  17. #ifdef CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG
  18. struct ipe_inode *ipe_inode(const struct inode *inode);
  19. #endif /* CONFIG_IPE_PROP_FS_VERITY_BUILTIN_SIG */
  20. int ipe_init_securityfs(void);
  21. #endif /* _IPE_H */