e5a4cc30cb
As part of on ongoing effort to perform more automated testing and provide more tools for individual developers to validate their patches before submitting, we are trying to make our code "clang-format clean". My hope is that once we have fixed all of our style "quirks", developers will be able to run clang-format on their patches to help avoid silly formatting problems and ensure their changes fit in well with the rest of the SELinux kernel code. Signed-off-by: Paul Moore <paul@paul-moore.com>
29 lines
591 B
C
29 lines
591 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2021 Microsoft Corporation
|
|
*
|
|
* Author: Lakshmi Ramasubramanian (nramas@linux.microsoft.com)
|
|
*
|
|
* Measure critical data structures maintained 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(void);
|
|
extern void selinux_ima_measure_state_locked(void);
|
|
#else
|
|
static inline void selinux_ima_measure_state(void)
|
|
{
|
|
}
|
|
static inline void selinux_ima_measure_state_locked(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _SELINUX_IMA_H_ */
|