ima.h 591 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2021 Microsoft Corporation
  4. *
  5. * Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
  6. *
  7. * Measure critical data structures maintained by SELinux
  8. * using IMA subsystem.
  9. */
  10. #ifndef _SELINUX_IMA_H_
  11. #define _SELINUX_IMA_H_
  12. #include "security.h"
  13. #ifdef CONFIG_IMA
  14. extern void selinux_ima_measure_state(void);
  15. extern void selinux_ima_measure_state_locked(void);
  16. #else
  17. static inline void selinux_ima_measure_state(void)
  18. {
  19. }
  20. static inline void selinux_ima_measure_state_locked(void)
  21. {
  22. }
  23. #endif
  24. #endif /* _SELINUX_IMA_H_ */