diff options
Diffstat (limited to 'security/integrity/integrity.h')
-rw-r--r-- | security/integrity/integrity.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/security/integrity/integrity.h b/security/integrity/integrity.h index 5429ca59125b..2fb5e53e927f 100644 --- a/security/integrity/integrity.h +++ b/security/integrity/integrity.h | |||
@@ -54,6 +54,7 @@ enum evm_ima_xattr_type { | |||
54 | IMA_XATTR_DIGEST = 0x01, | 54 | IMA_XATTR_DIGEST = 0x01, |
55 | EVM_XATTR_HMAC, | 55 | EVM_XATTR_HMAC, |
56 | EVM_IMA_XATTR_DIGSIG, | 56 | EVM_IMA_XATTR_DIGSIG, |
57 | IMA_XATTR_DIGEST_NG, | ||
57 | }; | 58 | }; |
58 | 59 | ||
59 | struct evm_ima_xattr_data { | 60 | struct evm_ima_xattr_data { |
@@ -66,7 +67,17 @@ struct evm_ima_xattr_data { | |||
66 | struct ima_digest_data { | 67 | struct ima_digest_data { |
67 | u8 algo; | 68 | u8 algo; |
68 | u8 length; | 69 | u8 length; |
69 | u8 type; | 70 | union { |
71 | struct { | ||
72 | u8 unused; | ||
73 | u8 type; | ||
74 | } sha1; | ||
75 | struct { | ||
76 | u8 type; | ||
77 | u8 algo; | ||
78 | } ng; | ||
79 | u8 data[2]; | ||
80 | } xattr; | ||
70 | u8 digest[0]; | 81 | u8 digest[0]; |
71 | } __packed; | 82 | } __packed; |
72 | 83 | ||