4 * Copyright (c) 2009 IBM Corporation
5 * Author: Mimi Zohar <zohar@us.ibm.com>
11 #include <linux/integrity.h>
12 #include <linux/xattr.h>
15 extern enum integrity_status evm_verifyxattr(struct dentry *dentry,
16 const char *xattr_name,
18 size_t xattr_value_len);
19 extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid);
20 extern int evm_inode_setxattr(struct dentry *dentry, const char *name,
21 const void *value, size_t size);
22 extern void evm_inode_post_setxattr(struct dentry *dentry,
23 const char *xattr_name,
24 const void *xattr_value,
25 size_t xattr_value_len);
26 extern int evm_inode_removexattr(struct dentry *dentry, const char *xattr_name);
27 extern void evm_inode_post_removexattr(struct dentry *dentry,
28 const char *xattr_name);
29 extern int evm_inode_init_security(struct inode *inode,
30 const struct xattr *xattr_array,
33 #ifdef CONFIG_INTEGRITY
34 static inline enum integrity_status evm_verifyxattr(struct dentry *dentry,
35 const char *xattr_name,
37 size_t xattr_value_len)
39 return INTEGRITY_UNKNOWN;
43 static inline void evm_inode_post_setattr(struct dentry *dentry, int ia_valid)
48 static inline int evm_inode_setxattr(struct dentry *dentry, const char *name,
49 const void *value, size_t size)
54 static inline void evm_inode_post_setxattr(struct dentry *dentry,
55 const char *xattr_name,
56 const void *xattr_value,
57 size_t xattr_value_len)
62 static inline int evm_inode_removexattr(struct dentry *dentry,
63 const char *xattr_name)
68 static inline void evm_inode_post_removexattr(struct dentry *dentry,
69 const char *xattr_name)
74 static inline int evm_inode_init_security(struct inode *inode,
75 const struct xattr *xattr_array,
81 #endif /* CONFIG_EVM_H */
82 #endif /* LINUX_EVM_H */