mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-05-07 10:09:22 +00:00
IMA: move the default policy file to /etc/ima directory
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
@@ -26,7 +26,7 @@ ROOT_DIR="${1}"
|
|||||||
SECURITYFS_DIR="${ROOT_DIR}/sys/kernel/security"
|
SECURITYFS_DIR="${ROOT_DIR}/sys/kernel/security"
|
||||||
|
|
||||||
# The policy files are always placed in initramfs
|
# The policy files are always placed in initramfs
|
||||||
IMA_POLICY=/etc/ima_policy
|
IMA_POLICY=/etc/ima/ima_policy
|
||||||
|
|
||||||
SECURITYFS_MOUNTED=0
|
SECURITYFS_MOUNTED=0
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,20 @@
|
|||||||
DESCRIPTION = "The default external IMA policy"
|
DESCRIPTION = "The default external IMA policy"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
LIC_FILES_CHKSUM = "\
|
||||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
||||||
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \
|
||||||
|
"
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = "\
|
||||||
file://ima_policy.default \
|
file://ima_policy.default \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
install -d "${D}${sysconfdir}"
|
install -d "${D}${sysconfdir}/ima"
|
||||||
install -m 0400 "${WORKDIR}/ima_policy.default" \
|
install -m 0400 "${WORKDIR}/ima_policy.default" \
|
||||||
"${D}${sysconfdir}"
|
"${D}${sysconfdir}/ima"
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "${sysconfdir}"
|
FILES_${PN} = "${sysconfdir}"
|
||||||
|
|||||||
Reference in New Issue
Block a user