Skip to contentSkip to conversation

ima-evm-keys: add file-checksums to IMA_EVM_X509

PATCH In review Ming Liu 2 participants 2 messages Mar 12, 2021 – Mar 18, 2021

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

PATCH 1/1 ima-evm-keys: add file-checksums to IMA_EVM_X509

From: Ming Liu <[email protected]>

This ensures when a end user change the IMA_EVM_X509 key file, ima-evm-keys recipe will be rebuilt.

---
 meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb +1 -0
index 62685bb..7708aef 100644
@@ -14,3 +14,4 @@ do_install () {
         lnr ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
     fi
 }
+do_install[file-checksums] += "${@'${IMA_EVM_X509}:%s' % os.path.exists('${IMA_EVM_X509}')}"
Signature · 1 line
2.29.0
#1 lore raw

merged,
thanks

Quoted 19 lines · On 3/12/21 1:53 AM, [email protected] wrote:

From: Ming Liu <[email protected]>

This ensures when a end user change the IMA_EVM_X509 key file, ima-evm-keys recipe will be rebuilt.

---
 meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb | 1 +
 1 file changed, 1 insertion(+)
meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb +1 -0
index 62685bb..7708aef 100644
@@ -14,3 +14,4 @@ do_install () {
         lnr ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der
     fi
 }
+do_install[file-checksums] += "${@'${IMA_EVM_X509}:%s' % os.path.exists('${IMA_EVM_X509}')}"