2021-01-15 03:15:22 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2021 Microsoft Corporation
|
|
|
|
*
|
|
|
|
* Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
|
|
|
|
*
|
|
|
|
* Measure critical data structures maintainted by SELinux
|
|
|
|
* using IMA subsystem.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SELINUX_IMA_H_
|
|
|
|
#define _SELINUX_IMA_H_
|
|
|
|
|
|
|
|
#include "security.h"
|
|
|
|
|
|
|
|
#ifdef CONFIG_IMA
|
|
|
|
extern void selinux_ima_measure_state(struct selinux_state *selinux_state);
|
2021-02-13 00:37:09 +08:00
|
|
|
extern void selinux_ima_measure_state_locked(
|
|
|
|
struct selinux_state *selinux_state);
|
2021-01-15 03:15:22 +08:00
|
|
|
#else
|
|
|
|
static inline void selinux_ima_measure_state(struct selinux_state *selinux_state)
|
|
|
|
{
|
|
|
|
}
|
2021-02-13 00:37:09 +08:00
|
|
|
static inline void selinux_ima_measure_state_locked(
|
|
|
|
struct selinux_state *selinux_state)
|
|
|
|
{
|
|
|
|
}
|
2021-01-15 03:15:22 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _SELINUX_IMA_H_ */
|