aboutsummaryrefslogtreecommitdiffstats
path: root/meta-integrity/recipes-security/ima_policy_hashed/ima-policy-hashed_1.0.bb
blob: 3352daa034ace0a4bb367f3510dc05574b5c42f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SUMMARY = "IMA sample hash policy"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

# This policy file will get installed as /etc/ima/ima-policy.
# It is located via the normal file search path, so a .bbappend
# to this recipe can just point towards one of its own files.
IMA_POLICY ?= "ima_policy_hashed"

SRC_URI = " \
    file://${IMA_POLICY} \
"

do_install () {
    install -d ${D}/${sysconfdir}/ima
    install ${WORKDIR}/${IMA_POLICY}  ${D}/${sysconfdir}/ima/ima-policy
}

FILES_${PN} = "${sysconfdir}/ima"
RDEPENDS_${PN} = "ima-evm-utils"