diff options
Diffstat (limited to 'security/integrity/evm/evm.h')
-rw-r--r-- | security/integrity/evm/evm.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/security/integrity/evm/evm.h b/security/integrity/evm/evm.h index d320f5197437..c885247ebcf7 100644 --- a/security/integrity/evm/evm.h +++ b/security/integrity/evm/evm.h | |||
@@ -12,14 +12,21 @@ | |||
12 | * File: evm.h | 12 | * File: evm.h |
13 | * | 13 | * |
14 | */ | 14 | */ |
15 | |||
16 | #ifndef __INTEGRITY_EVM_H | ||
17 | #define __INTEGRITY_EVM_H | ||
18 | |||
15 | #include <linux/xattr.h> | 19 | #include <linux/xattr.h> |
16 | #include <linux/security.h> | 20 | #include <linux/security.h> |
21 | |||
17 | #include "../integrity.h" | 22 | #include "../integrity.h" |
18 | 23 | ||
19 | extern int evm_initialized; | 24 | extern int evm_initialized; |
20 | extern char *evm_hmac; | 25 | extern char *evm_hmac; |
26 | extern char *evm_hash; | ||
21 | 27 | ||
22 | extern struct crypto_shash *hmac_tfm; | 28 | extern struct crypto_shash *hmac_tfm; |
29 | extern struct crypto_shash *hash_tfm; | ||
23 | 30 | ||
24 | /* List of EVM protected security xattrs */ | 31 | /* List of EVM protected security xattrs */ |
25 | extern char *evm_config_xattrnames[]; | 32 | extern char *evm_config_xattrnames[]; |
@@ -32,7 +39,12 @@ extern int evm_update_evmxattr(struct dentry *dentry, | |||
32 | extern int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name, | 39 | extern int evm_calc_hmac(struct dentry *dentry, const char *req_xattr_name, |
33 | const char *req_xattr_value, | 40 | const char *req_xattr_value, |
34 | size_t req_xattr_value_len, char *digest); | 41 | size_t req_xattr_value_len, char *digest); |
42 | extern int evm_calc_hash(struct dentry *dentry, const char *req_xattr_name, | ||
43 | const char *req_xattr_value, | ||
44 | size_t req_xattr_value_len, char *digest); | ||
35 | extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr, | 45 | extern int evm_init_hmac(struct inode *inode, const struct xattr *xattr, |
36 | char *hmac_val); | 46 | char *hmac_val); |
37 | extern int evm_init_secfs(void); | 47 | extern int evm_init_secfs(void); |
38 | extern void evm_cleanup_secfs(void); | 48 | extern void evm_cleanup_secfs(void); |
49 | |||
50 | #endif | ||