GNU Linux-libre 6.9.2-gnu
[releases.git] / include / linux / integrity.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2009 IBM Corporation
4  * Author: Mimi Zohar <zohar@us.ibm.com>
5  */
6
7 #ifndef _LINUX_INTEGRITY_H
8 #define _LINUX_INTEGRITY_H
9
10 #include <linux/fs.h>
11
12 enum integrity_status {
13         INTEGRITY_PASS = 0,
14         INTEGRITY_PASS_IMMUTABLE,
15         INTEGRITY_FAIL,
16         INTEGRITY_FAIL_IMMUTABLE,
17         INTEGRITY_NOLABEL,
18         INTEGRITY_NOXATTRS,
19         INTEGRITY_UNKNOWN,
20 };
21
22 #ifdef CONFIG_INTEGRITY
23 extern void __init integrity_load_keys(void);
24
25 #else
26 static inline void integrity_load_keys(void)
27 {
28 }
29 #endif /* CONFIG_INTEGRITY */
30
31 #endif /* _LINUX_INTEGRITY_H */