diff options
Diffstat (limited to 'security/integrity/integrity.h')
-rw-r--r-- | security/integrity/integrity.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index 4eec1b14193e..564ba7db5f6a 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
@@ -15,13 +15,19 @@ | |||
15 | #include <linux/integrity.h> | 15 | #include <linux/integrity.h> |
16 | #include <crypto/sha.h> | 16 | #include <crypto/sha.h> |
17 | 17 | ||
18 | /* iint action cache flags */ | ||
19 | #define IMA_MEASURE 0x0001 | ||
20 | #define IMA_MEASURED 0x0002 | ||
21 | #define IMA_APPRAISE 0x0004 | ||
22 | #define IMA_APPRAISED 0x0008 | ||
23 | /*#define IMA_COLLECT 0x0010 do not use this flag */ | ||
24 | #define IMA_COLLECTED 0x0020 | ||
25 | |||
18 | /* iint cache flags */ | 26 | /* iint cache flags */ |
19 | #define IMA_MEASURE 0x01 | 27 | #define IMA_DIGSIG 0x0100 |
20 | #define IMA_MEASURED 0x02 | 28 | |
21 | #define IMA_APPRAISE 0x04 | 29 | #define IMA_DO_MASK (IMA_MEASURE | IMA_APPRAISE) |
22 | #define IMA_APPRAISED 0x08 | 30 | #define IMA_DONE_MASK (IMA_MEASURED | IMA_APPRAISED | IMA_COLLECTED) |
23 | #define IMA_COLLECTED 0x10 | ||
24 | #define IMA_DIGSIG 0x20 | ||
25 | 31 | ||
26 | enum evm_ima_xattr_type { | 32 | enum evm_ima_xattr_type { |
27 | IMA_XATTR_DIGEST = 0x01, | 33 | IMA_XATTR_DIGEST = 0x01, |