diff options
Diffstat (limited to 'security/integrity/integrity.h')
-rw-r--r-- | security/integrity/integrity.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index 7a25ecec5aaa..4eec1b14193e 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
@@ -16,7 +16,12 @@ | |||
16 | #include <crypto/sha.h> | 16 | #include <crypto/sha.h> |
17 | 17 | ||
18 | /* iint cache flags */ | 18 | /* iint cache flags */ |
19 | #define IMA_MEASURED 0x01 | 19 | #define IMA_MEASURE 0x01 |
20 | #define IMA_MEASURED 0x02 | ||
21 | #define IMA_APPRAISE 0x04 | ||
22 | #define IMA_APPRAISED 0x08 | ||
23 | #define IMA_COLLECTED 0x10 | ||
24 | #define IMA_DIGSIG 0x20 | ||
20 | 25 | ||
21 | enum evm_ima_xattr_type { | 26 | enum evm_ima_xattr_type { |
22 | IMA_XATTR_DIGEST = 0x01, | 27 | IMA_XATTR_DIGEST = 0x01, |
@@ -35,8 +40,8 @@ struct integrity_iint_cache { | |||
35 | struct inode *inode; /* back pointer to inode in question */ | 40 | struct inode *inode; /* back pointer to inode in question */ |
36 | u64 version; /* track inode changes */ | 41 | u64 version; /* track inode changes */ |
37 | unsigned char flags; | 42 | unsigned char flags; |
38 | u8 digest[SHA1_DIGEST_SIZE]; | 43 | struct evm_ima_xattr_data ima_xattr; |
39 | struct mutex mutex; /* protects: version, flags, digest */ | 44 | enum integrity_status ima_status; |
40 | enum integrity_status evm_status; | 45 | enum integrity_status evm_status; |
41 | }; | 46 | }; |
42 | 47 | ||