diff options
author | Ming Liu <liu.ming50@gmail.com> | 2021-02-20 13:18:17 +0100 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2021-03-04 13:10:30 -0800 |
commit | 8de3937af18ca480431c1aab5d7ecdba27196ba3 (patch) | |
tree | d951a51a205649e2faa59492b419b9bb746132a0 | |
parent | 0cee6f3c50827fa9a34e6a86026bd1ca59141b9a (diff) | |
download | meta-security-8de3937af18ca480431c1aab5d7ecdba27196ba3.tar.gz |
ima-evm-keys: add recipe
Create a recipe to package IMA/EMV public keys.
Signed-off-by: Ming Liu <liu.ming50@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb b/meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb new file mode 100644 index 0000000..62685bb --- /dev/null +++ b/meta-integrity/recipes-security/ima-evm-keys/ima-evm-keys_1.0.bb | |||
@@ -0,0 +1,16 @@ | |||
1 | SUMMARY = "IMA/EMV public keys" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
4 | |||
5 | inherit features_check | ||
6 | REQUIRED_DISTRO_FEATURES = "ima" | ||
7 | |||
8 | ALLOW_EMPTY_${PN} = "1" | ||
9 | |||
10 | do_install () { | ||
11 | if [ -e "${IMA_EVM_X509}" ]; then | ||
12 | install -d ${D}/${sysconfdir}/keys | ||
13 | install "${IMA_EVM_X509}" ${D}${sysconfdir}/keys/x509_evm.der | ||
14 | lnr ${D}${sysconfdir}/keys/x509_evm.der ${D}${sysconfdir}/keys/x509_ima.der | ||
15 | fi | ||
16 | } | ||