mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-09 08:40:43 +02:00
ima-evm-utils: Define hash and sig buffer sizes and add asserts
To prevent hash and sig buffers size mismatch, define their maximum sizes and add sanity checking asserts. Suggested-by: Mimi Zohar <zohar@linux.ibm.com> Signed-off-by: Vitaly Chikunov <vt@altlinux.org> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:

committed by
Mimi Zohar

parent
9643544701
commit
1d9c279279
@ -75,6 +75,9 @@
|
||||
#define DATA_SIZE 4096
|
||||
#define SHA1_HASH_LEN 20
|
||||
|
||||
#define MAX_DIGEST_SIZE 64
|
||||
#define MAX_SIGNATURE_SIZE 1024
|
||||
|
||||
#define __packed __attribute__((packed))
|
||||
|
||||
enum evm_ima_xattr_type {
|
||||
|
Reference in New Issue
Block a user