ima.h 724 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2021 Microsoft Corporation
  4. *
  5. * Author: Lakshmi Ramasubramanian ([email protected])
  6. *
  7. * Measure critical data structures maintainted 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(struct selinux_state *selinux_state);
  15. extern void selinux_ima_measure_state_locked(
  16. struct selinux_state *selinux_state);
  17. #else
  18. static inline void selinux_ima_measure_state(struct selinux_state *selinux_state)
  19. {
  20. }
  21. static inline void selinux_ima_measure_state_locked(
  22. struct selinux_state *selinux_state)
  23. {
  24. }
  25. #endif
  26. #endif /* _SELINUX_IMA_H_ */