aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/evm/evm.h
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2011-03-09 14:40:44 -0500
committerMimi Zohar <zohar@linux.vnet.ibm.com>2011-07-18 12:29:45 -0400
commitcb72318069d5e92eb74840118732c66eb38c812f (patch)
treeeb4e9a6c923567e01ddd1340f9430eb3c43f4aeb /security/integrity/evm/evm.h
parent975d294373d8c1c913ad2bf4eb93966d4c7ca38f (diff)
evm: add evm_inode_init_security to initialize new files
Initialize 'security.evm' for new files. Changelog v7: - renamed evm_inode_post_init_security to evm_inode_init_security - moved struct xattr definition to earlier patch - allocate xattr name Changelog v6: - Use 'struct evm_ima_xattr_data' Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Diffstat (limited to 'security/integrity/evm/evm.h')
-rw-r--r--security/integrity/evm/evm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/integrity/evm/evm.h b/security/integrity/evm/evm.h
index 375dc3e6015c..a45d0d630a30 100644
--- a/security/integrity/evm/evm.h
+++ b/security/integrity/evm/evm.h
@@ -12,6 +12,7 @@
12 * File: evm.h 12 * File: evm.h
13 * 13 *
14 */ 14 */
15#include <linux/xattr.h>
15#include <linux/security.h> 16#include <linux/security.h>
16#include "../integrity.h" 17#include "../integrity.h"
17 18
@@ -29,5 +30,7 @@ extern int evm_update_evmxattr(struct dentry *dentry,
29extern int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name, 30extern int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name,
30 const char *req_xattr_value, 31 const char *req_xattr_value,
31 size_t req_xattr_value_len, char *digest); 32 size_t req_xattr_value_len, char *digest);
33extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr,
34 char *hmac_val);
32extern int evm_init_secfs(void); 35extern int evm_init_secfs(void);
33extern void evm_cleanup_secfs(void); 36extern void evm_cleanup_secfs(void);