mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-05 02:20:50 +00:00
meta: drop IMA_POLICY from policy recipes
IMA_POLICY is being referred as policy recipe name in some places and it is also being referred as policy file in other places, they are conflicting with each other which make it impossible to set a IMA_POLICY global variable in config file. Fix it by dropping IMA_POLICY definitions from policy recipes Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+2
-7
@@ -2,19 +2,14 @@ SUMMARY = "IMA sample simple appraise 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_appraise_all"
|
||||
|
||||
SRC_URI = " file://${IMA_POLICY}"
|
||||
SRC_URI = " file://ima_policy_appraise_all"
|
||||
|
||||
inherit features_check
|
||||
REQUIRED_DISTRO_FEATURES = "ima"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${sysconfdir}/ima
|
||||
install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima/ima-policy
|
||||
install ${WORKDIR}/ima_policy_appraise_all ${D}/${sysconfdir}/ima/ima-policy
|
||||
}
|
||||
|
||||
FILES_${PN} = "${sysconfdir}/ima"
|
||||
|
||||
@@ -2,13 +2,8 @@ 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} \
|
||||
file://ima_policy_hashed \
|
||||
"
|
||||
|
||||
inherit features_check
|
||||
@@ -16,7 +11,7 @@ REQUIRED_DISTRO_FEATURES = "ima"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${sysconfdir}/ima
|
||||
install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima/ima-policy
|
||||
install ${WORKDIR}/ima_policy_hashed ${D}/${sysconfdir}/ima/ima-policy
|
||||
}
|
||||
|
||||
FILES_${PN} = "${sysconfdir}/ima"
|
||||
|
||||
@@ -2,19 +2,14 @@ SUMMARY = "IMA sample simple 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_simple"
|
||||
|
||||
SRC_URI = " file://${IMA_POLICY}"
|
||||
SRC_URI = " file://ima_policy_simple"
|
||||
|
||||
inherit features_check
|
||||
REQUIRED_DISTRO_FEATURES = "ima"
|
||||
|
||||
do_install () {
|
||||
install -d ${D}/${sysconfdir}/ima
|
||||
install ${WORKDIR}/${IMA_POLICY} ${D}/${sysconfdir}/ima/ima-policy
|
||||
install ${WORKDIR}/ima_policy_simple ${D}/${sysconfdir}/ima/ima-policy
|
||||
}
|
||||
|
||||
FILES_${PN} = "${sysconfdir}/ima"
|
||||
|
||||
Reference in New Issue
Block a user