mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-06 16:48:42 +00:00
initramfs: clean up to pull in packages.
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
@@ -8,25 +8,21 @@
|
|||||||
SUMMARY = "IMA module for the modular initramfs system"
|
SUMMARY = "IMA module for the modular initramfs system"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
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.
|
# This policy file will get installed as /etc/ima/ima-policy.
|
||||||
# It is located via the normal file search path, so a .bbappend
|
# It is located via the normal file search path, so a .bbappend
|
||||||
# to this recipe can just point towards one of its own files.
|
# to this recipe can just point towards one of its own files.
|
||||||
IMA_POLICY ?= "ima_policy_hashed"
|
IMA_POLICY ?= "ima_policy_hashed"
|
||||||
FILESEXTRAPATHS =. "${IMA_EVM_BASE}/data:"
|
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " file://ima"
|
||||||
file://${IMA_POLICY} \
|
|
||||||
file://ima \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}/${sysconfdir}/ima
|
install -d ${D}/${sysconfdir}/ima
|
||||||
install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima-policy
|
|
||||||
install -d ${D}/init.d
|
install -d ${D}/init.d
|
||||||
install ${WORKDIR}/ima ${D}/init.d/20-ima
|
install ${WORKDIR}/ima ${D}/init.d/20-ima
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "/init.d ${sysconfdir}"
|
FILES_${PN} = "/init.d ${sysconfdir}"
|
||||||
RDEPENDS_${PN} = "keyutils"
|
|
||||||
|
RDEPENDS_${PN} = "keyutils ${IMA_POLICY}"
|
||||||
|
RDEPENDS_${PN} += "initramfs-framework-base"
|
||||||
|
|||||||
Reference in New Issue
Block a user