2023-08-30 17:31:07 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Microsoft Corporation
|
|
|
|
*
|
|
|
|
* Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
|
|
|
|
*
|
2023-10-24 12:59:35 +02:00
|
|
|
* Measure critical data structures maintained by SELinux
|
2023-08-30 17:31:07 +02:00
|
|
|
* using IMA subsystem.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SELINUX_IMA_H_
|
|
|
|
#define _SELINUX_IMA_H_
|
|
|
|
|
|
|
|
#include "security.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_IMA
|
2023-10-24 12:59:35 +02:00
|
|
|
extern void selinux_ima_measure_state(void);
|
|
|
|
extern void selinux_ima_measure_state_locked(void);
|
2023-08-30 17:31:07 +02:00
|
|
|
#else
|
2023-10-24 12:59:35 +02:00
|
|
|
static inline void selinux_ima_measure_state(void)
|
2023-08-30 17:31:07 +02:00
|
|
|
{
|
|
|
|
}
|
2023-10-24 12:59:35 +02:00
|
|
|
static inline void selinux_ima_measure_state_locked(void)
|
2023-08-30 17:31:07 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SELINUX_IMA_H_ */
|