Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  * Copyright (C) 2021 Microsoft Corporation
0004  *
0005  * Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
0006  *
0007  * Measure critical data structures maintainted by SELinux
0008  * using IMA subsystem.
0009  */
0010 
0011 #ifndef _SELINUX_IMA_H_
0012 #define _SELINUX_IMA_H_
0013 
0014 #include "security.h"
0015 
0016 #ifdef CONFIG_IMA
0017 extern void selinux_ima_measure_state(struct selinux_state *selinux_state);
0018 extern void selinux_ima_measure_state_locked(
0019             struct selinux_state *selinux_state);
0020 #else
0021 static inline void selinux_ima_measure_state(struct selinux_state *selinux_state)
0022 {
0023 }
0024 static inline void selinux_ima_measure_state_locked(
0025             struct selinux_state *selinux_state)
0026 {
0027 }
0028 #endif
0029 
0030 #endif  /* _SELINUX_IMA_H_ */