mirror of
https://github.com/jiazhang0/meta-secure-core.git
synced 2026-07-17 05:06:59 +00:00
initrdscripts-ima: clean up code style and RDEPENDS
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
This commit is contained in:
@@ -1,47 +1,44 @@
|
|||||||
DESCRIPTION = "The initrd script for Linux Integrity Measurement Architecture (IMA)"
|
DESCRIPTION = "The initrd script for Linux Integrity Measurement Architecture (IMA)"
|
||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
|
LIC_FILES_CHKSUM = "\
|
||||||
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \
|
||||||
|
"
|
||||||
S = "${WORKDIR}"
|
|
||||||
|
|
||||||
ALLOW_EMPTY_${PN} = "1"
|
|
||||||
|
|
||||||
SRC_URI = "\
|
SRC_URI = "\
|
||||||
file://init.ima \
|
file://init.ima \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
S = "${WORKDIR}"
|
||||||
|
|
||||||
|
ALLOW_EMPTY_${PN} = "1"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
if [ x"${@bb.utils.contains('DISTRO_FEATURES', 'ima', '1', '0', d)}" = x"1" ]; then
|
install -m 0500 "${WORKDIR}/init.ima" "${D}"
|
||||||
install -m 0500 ${WORKDIR}/init.ima ${D}
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += " \
|
FILES_${PN} += "\
|
||||||
${@bb.utils.contains('DISTRO_FEATURES', 'ima', '/init.ima', '', d)} \
|
/init.ima \
|
||||||
"
|
"
|
||||||
|
|
||||||
# Install the minimal stuffs only, and don't care how the external
|
# Install the minimal stuffs only, and don't care how the external
|
||||||
# environment is configured.
|
# environment is configured.
|
||||||
|
|
||||||
# @bash: sh
|
# @bash: sh
|
||||||
# @coreutils: echo, mkdir, mknod, dirname, basename, cp, rm, sleep
|
# @coreutils: echo, printf
|
||||||
# seq, printf, cut
|
|
||||||
# @grep: grep
|
# @grep: grep
|
||||||
# @gawk: awk
|
# @gawk: awk
|
||||||
# @kmod: modprobe, depmod
|
# @util-linux: mount, umount
|
||||||
# @net-tools: ifconfig
|
# @ima-evm-utils: evmctl
|
||||||
# @trousers: tcsd
|
|
||||||
# @procps: pkill
|
|
||||||
# @util-linux: blkid, mount, umount
|
|
||||||
RDEPENDS_${PN} += "\
|
RDEPENDS_${PN} += "\
|
||||||
bash \
|
|
||||||
coreutils \
|
coreutils \
|
||||||
grep \
|
grep \
|
||||||
gawk \
|
gawk \
|
||||||
kmod \
|
|
||||||
net-tools \
|
|
||||||
procps \
|
|
||||||
util-linux-blkid \
|
|
||||||
util-linux-mount \
|
util-linux-mount \
|
||||||
util-linux-umount \
|
util-linux-umount \
|
||||||
|
ima-evm-utils \
|
||||||
|
ima-policy \
|
||||||
|
"
|
||||||
|
|
||||||
|
RRECOMMENDS_${PN} += "\
|
||||||
|
key-store-ima-cert \
|
||||||
"
|
"
|
||||||
|
|||||||
Reference in New Issue
Block a user