diff options
author | Armin Kuster <akuster808@gmail.com> | 2019-05-26 11:28:57 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2019-05-28 07:38:52 -0700 |
commit | 7b287954f7f342f5e4ae8ba22063945bff0b607e (patch) | |
tree | 581cef7ae136ff328a3b6d3aab47cca8c1ef4bf0 | |
parent | d1d4e78708d955d3779fb8ae7c3a531bbfb55050 (diff) | |
download | meta-security-7b287954f7f342f5e4ae8ba22063945bff0b607e.tar.gz |
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.bb | 12 |
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 @@ | |||
8 | SUMMARY = "IMA module for the modular initramfs system" | 8 | SUMMARY = "IMA module for the modular initramfs system" |
9 | LICENSE = "MIT" | 9 | LICENSE = "MIT" |
10 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 10 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
11 | RDEPENDS_${PN} += "initramfs-framework-base" | ||
12 | 11 | ||
13 | # This policy file will get installed as /etc/ima/ima-policy. | 12 | # This policy file will get installed as /etc/ima/ima-policy. |
14 | # It is located via the normal file search path, so a .bbappend | 13 | # It is located via the normal file search path, so a .bbappend |
15 | # to this recipe can just point towards one of its own files. | 14 | # to this recipe can just point towards one of its own files. |
16 | IMA_POLICY ?= "ima_policy_hashed" | 15 | IMA_POLICY ?= "ima_policy_hashed" |
17 | FILESEXTRAPATHS =. "${IMA_EVM_BASE}/data:" | ||
18 | 16 | ||
19 | SRC_URI = " \ | 17 | SRC_URI = " file://ima" |
20 | file://${IMA_POLICY} \ | ||
21 | file://ima \ | ||
22 | " | ||
23 | 18 | ||
24 | do_install () { | 19 | do_install () { |
25 | install -d ${D}/${sysconfdir}/ima | 20 | install -d ${D}/${sysconfdir}/ima |
26 | install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima-policy | ||
27 | install -d ${D}/init.d | 21 | install -d ${D}/init.d |
28 | install ${WORKDIR}/ima ${D}/init.d/20-ima | 22 | install ${WORKDIR}/ima ${D}/init.d/20-ima |
29 | } | 23 | } |
30 | 24 | ||
31 | FILES_${PN} = "/init.d ${sysconfdir}" | 25 | FILES_${PN} = "/init.d ${sysconfdir}" |
32 | RDEPENDS_${PN} = "keyutils" | 26 | |
27 | RDEPENDS_${PN} = "keyutils ${IMA_POLICY}" | ||
28 | RDEPENDS_${PN} += "initramfs-framework-base" | ||