summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@kernel.crashing.org>2022-02-28 19:37:26 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-03-01 23:44:59 +0000
commite9cc9772f277cbb270f52916b21d94abdaa1467f (patch)
tree03ce990650df2fc46e3acb01ec6c11fcd4afc90b /meta/classes/insane.bbclass
parent83766c9fffa45cd3a94cf8076f7c8f45aba11a12 (diff)
downloadpoky-e9cc9772f277cbb270f52916b21d94abdaa1467f.tar.gz
insane.bbclass: Update insane.bbclass to work on FIPS enabled hosts
hashlib.md5() is not permitted on a FIPS enabled host system. This is due to md5 not being an approved hash algorithm. Instead use: hashlib.new('MD5', usedforsecurity=False) This is allowed, as it's clear the hash is used for a non-security purpose. Using an md5 to identify when a license has changed is permitted, as we're not using it for file integrity. (From OE-Core rev: 7f7eb82ce47ede6ec6f50cbcb56cbfbe10e8d20c) Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 890e865a8f..29b9b3d466 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -549,7 +549,7 @@ python populate_lic_qa_checksum() {
549 import hashlib 549 import hashlib
550 lineno = 0 550 lineno = 0
551 license = [] 551 license = []
552 m = hashlib.md5() 552 m = hashlib.new('MD5', usedforsecurity=False)
553 for line in f: 553 for line in f:
554 lineno += 1 554 lineno += 1
555 if (lineno >= beginline): 555 if (lineno >= beginline):