diff options
author | Dmitry Kasatkin <dmitry.kasatkin@nokia.com> | 2011-05-06 04:34:13 -0400 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2011-07-18 12:29:47 -0400 |
commit | 2960e6cb5f7c662b8edb6b0d2edc72095b4f5672 (patch) | |
tree | 84e8c3378312243087089a669e4209f43d531b37 /include/linux/evm.h | |
parent | d46eb3699502ba221e81e88e6c6594e2a7818532 (diff) |
evm: additional parameter to pass integrity cache entry 'iint'
Additional iint parameter allows to skip lookup in the cache.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'include/linux/evm.h')
-rw-r--r-- | include/linux/evm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/evm.h b/include/linux/evm.h index 7c10761916a2..6d4e89b020c5 100644 --- a/include/linux/evm.h +++ b/include/linux/evm.h | |||
@@ -11,11 +11,14 @@ | |||
11 | #include <linux/integrity.h> | 11 | #include <linux/integrity.h> |
12 | #include <linux/xattr.h> | 12 | #include <linux/xattr.h> |
13 | 13 | ||
14 | struct integrity_iint_cache; | ||
15 | |||
14 | #ifdef CONFIG_EVM | 16 | #ifdef CONFIG_EVM |
15 | extern enum integrity_status evm_verifyxattr(struct dentry *dentry, | 17 | extern enum integrity_status evm_verifyxattr(struct dentry *dentry, |
16 | const char *xattr_name, | 18 | const char *xattr_name, |
17 | void *xattr_value, | 19 | void *xattr_value, |
18 | size_t xattr_value_len); | 20 | size_t xattr_value_len, |
21 | struct integrity_iint_cache *iint); | ||
19 | extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid); | 22 | extern void evm_inode_post_setattr(struct dentry *dentry, int ia_valid); |
20 | extern int evm_inode_setxattr(struct dentry *dentry, const char *name, | 23 | extern int evm_inode_setxattr(struct dentry *dentry, const char *name, |
21 | const void *value, size_t size); | 24 | const void *value, size_t size); |
@@ -34,7 +37,8 @@ extern int evm_inode_init_security(struct inode *inode, | |||
34 | static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, | 37 | static inline enum integrity_status evm_verifyxattr(struct dentry *dentry, |
35 | const char *xattr_name, | 38 | const char *xattr_name, |
36 | void *xattr_value, | 39 | void *xattr_value, |
37 | size_t xattr_value_len) | 40 | size_t xattr_value_len, |
41 | struct integrity_iint_cache *iint) | ||
38 | { | 42 | { |
39 | return INTEGRITY_UNKNOWN; | 43 | return INTEGRITY_UNKNOWN; |
40 | } | 44 | } |