1SUMMARY = "IMA sample simple policy"
2LICENSE = "MIT"
3LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
4
5# This policy file will get installed as /etc/ima/ima-policy.
6# It is located via the normal file search path, so a .bbappend
7# to this recipe can just point towards one of its own files.
8IMA_POLICY ?= "ima_policy_simple"
9
10SRC_URI = " file://${IMA_POLICY}"
11
12inherit features_check
13REQUIRED_DISTRO_FEATURES = "ima"
14
15do_install () {
16    install -d ${D}/${sysconfdir}/ima
17    install ${WORKDIR}/${IMA_POLICY}  ${D}/${sysconfdir}/ima/ima-policy
18}
19
20FILES_${PN} = "${sysconfdir}/ima"
21RDEPENDS_${PN} = "ima-evm-utils"
22