diff options
Diffstat (limited to 'security/integrity/integrity.h')
-rw-r--r-- | security/integrity/integrity.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index 7a25ecec5aaa..dac6b68e945a 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
@@ -16,7 +16,11 @@ | |||
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 | ||
20 | 24 | ||
21 | enum evm_ima_xattr_type { | 25 | enum evm_ima_xattr_type { |
22 | IMA_XATTR_DIGEST = 0x01, | 26 | IMA_XATTR_DIGEST = 0x01, |
@@ -36,7 +40,7 @@ struct integrity_iint_cache { | |||
36 | u64 version; /* track inode changes */ | 40 | u64 version; /* track inode changes */ |
37 | unsigned char flags; | 41 | unsigned char flags; |
38 | u8 digest[SHA1_DIGEST_SIZE]; | 42 | u8 digest[SHA1_DIGEST_SIZE]; |
39 | struct mutex mutex; /* protects: version, flags, digest */ | 43 | enum integrity_status ima_status; |
40 | enum integrity_status evm_status; | 44 | enum integrity_status evm_status; |
41 | }; | 45 | }; |
42 | 46 | ||