Skip to content

Commit bab8e90

Browse files
stefanbergermimizohar
authored andcommitted
integrity: Allow sigv3 verification on EVM_XATTR_PORTABLE_DIGSIG
Allow sigv3 verification on EVM_XATTR_PORTABLE_DIGSIG on RSA, ECDSA, ECRDSA, and SM2 signatures. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
1 parent de4c44a commit bab8e90

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

security/integrity/digsig_asymmetric.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ static int calc_file_id_hash(enum evm_ima_xattr_type type,
154154
size_t file_id_size;
155155
int rc;
156156

157-
if (type != IMA_VERITY_DIGSIG && type != EVM_IMA_XATTR_DIGSIG)
157+
if (type != IMA_VERITY_DIGSIG && type != EVM_IMA_XATTR_DIGSIG &&
158+
type != EVM_XATTR_PORTABLE_DIGSIG)
158159
return -EINVAL;
159160

160161
tfm = crypto_alloc_shash(hash_algo_name[algo], 0, 0);

0 commit comments

Comments
 (0)