From d2e1446d81725c351dc73a03b397ce043fb18452 Mon Sep 17 00:00:00 2001 From: Meizu OpenSource Date: Mon, 15 Aug 2016 10:19:42 +0800 Subject: first commit --- include/linux/integrity.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 include/linux/integrity.h (limited to 'include/linux/integrity.h') diff --git a/include/linux/integrity.h b/include/linux/integrity.h new file mode 100644 index 000000000..83222cebd --- /dev/null +++ b/include/linux/integrity.h @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2009 IBM Corporation + * Author: Mimi Zohar + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 2 of the License. + */ + +#ifndef _LINUX_INTEGRITY_H +#define _LINUX_INTEGRITY_H + +#include + +enum integrity_status { + INTEGRITY_PASS = 0, + INTEGRITY_FAIL, + INTEGRITY_NOLABEL, + INTEGRITY_NOXATTRS, + INTEGRITY_UNKNOWN, +}; + +/* List of EVM protected security xattrs */ +#ifdef CONFIG_INTEGRITY +extern struct integrity_iint_cache *integrity_inode_get(struct inode *inode); +extern void integrity_inode_free(struct inode *inode); + +#else +static inline struct integrity_iint_cache * + integrity_inode_get(struct inode *inode) +{ + return NULL; +} + +static inline void integrity_inode_free(struct inode *inode) +{ + return; +} +#endif /* CONFIG_INTEGRITY */ +#endif /* _LINUX_INTEGRITY_H */ -- cgit v1.2.3