mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
This commit is contained in:
committed by
Mimi Zohar
parent
de4c44a7f5
commit
bab8e90bca
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user