projects/linux·commit bab8e90b

integrity: Allow sigv3 verification on EVM_XATTR_PORTABLE_DIGSIG

bab8e90b · Stefan Berger <[email protected]> · 2026-03-24 20:10:51 -04:00

Allow sigv3 verification on EVM_XATTR_PORTABLE_DIGSIG on RSA, ECDSA,
ECRDSA, and SM2 signatures.

Signed-off-by: Stefan Berger <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Commit
bab8e90bca64a87dd058527ae1d02596d35dc601
Parents
de4c44a7

Changes

1 files changed · +2 −1

FileStatusAddDelContent
security/integrity/digsig_asymmetric.cmodified+2−1View file

security/integrity/digsig_asymmetric.c

View file
diff --git a/security/integrity/digsig_asymmetric.c b/security/integrity/digsig_asymmetric.c
index 6b21b9b..6e68ec3 100644
--- a/security/integrity/digsig_asymmetric.c
+++ b/security/integrity/digsig_asymmetric.c
@@ -154,7 +154,8 @@ static int calc_file_id_hash(enum evm_ima_xattr_type type,
size_t file_id_size;
int rc;
- if (type != IMA_VERITY_DIGSIG && type != EVM_IMA_XATTR_DIGSIG)
+ if (type != IMA_VERITY_DIGSIG && type != EVM_IMA_XATTR_DIGSIG &&
+ type != EVM_XATTR_PORTABLE_DIGSIG)
return -EINVAL;
tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0);