Skip to content

Commit 34d099a

Browse files
nightmaredgregkh
authored andcommitted
IMA: remove the dependency on CRYPTO_MD5
commit 8510505 upstream. MD5 is a weak digest algorithm that shouldn't be used for cryptographic operation. It hinders the efficiency of a patch set that aims to limit the digests allowed for the extended file attribute namely security.ima. MD5 is no longer a requirement for IMA, nor should it be used there. The sole place where we still use the MD5 algorithm inside IMA is setting the ima_hash algorithm to MD5, if the user supplies 'ima_hash=md5' parameter on the command line. With commit ab60368 ("ima: Fallback to the builtin hash algorithm"), setting "ima_hash=md5" fails gracefully when CRYPTO_MD5 is not set: ima: Can not allocate md5 (reason: -2) ima: Allocating md5 failed, going to use default hash algorithm sha256 Remove the CRYPTO_MD5 dependency for IMA. Signed-off-by: THOBY Simon <[email protected]> Reviewed-by: Lakshmi Ramasubramanian <[email protected]> [[email protected]: include commit number in patch description for stable.] Cc: [email protected] # 4.17 Signed-off-by: Mimi Zohar <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5cc1ee3 commit 34d099a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

security/integrity/ima/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ config IMA
66
select SECURITYFS
77
select CRYPTO
88
select CRYPTO_HMAC
9-
select CRYPTO_MD5
109
select CRYPTO_SHA1
1110
select CRYPTO_HASH_INFO
1211
select TCG_TPM if HAS_IOMEM && !UML

0 commit comments

Comments
 (0)