aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2019-05-26 11:28:57 -0700
committerArmin Kuster <akuster808@gmail.com>2019-05-28 07:38:52 -0700
commit7b287954f7f342f5e4ae8ba22063945bff0b607e (patch)
tree581cef7ae136ff328a3b6d3aab47cca8c1ef4bf0
parentd1d4e78708d955d3779fb8ae7c3a531bbfb55050 (diff)
downloadmeta-security-7b287954f7f342f5e4ae8ba22063945bff0b607e.tar.gz
meta-security-7b287954f7f342f5e4ae8ba22063945bff0b607e.tar.bz2
meta-security-7b287954f7f342f5e4ae8ba22063945bff0b607e.zip
initramfs: clean up to pull in packages.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima.bb12
1 files changed, 4 insertions, 8 deletions
diff --git a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima.bb b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima.bb
index aca38b7..6057e8d 100644
--- a/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima.bb
+++ b/meta-integrity/recipes-core/initrdscripts/initramfs-framework-ima.bb
@@ -8,25 +8,21 @@
SUMMARY = "IMA module for the modular initramfs system"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-RDEPENDS_${PN} += "initramfs-framework-base"
# 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"
-FILESEXTRAPATHS =. "${IMA_EVM_BASE}/data:"
-SRC_URI = " \
- file://${IMA_POLICY} \
- file://ima \
-"
+SRC_URI = " file://ima"
do_install () {
install -d ${D}/${sysconfdir}/ima
- install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima-policy
install -d ${D}/init.d
install ${WORKDIR}/ima ${D}/init.d/20-ima
}
FILES_${PN} = "/init.d ${sysconfdir}"
-RDEPENDS_${PN} = "keyutils"
+
+RDEPENDS_${PN} = "keyutils ${IMA_POLICY}"
+RDEPENDS_${PN} += "initramfs-framework-base"