diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2017-07-04 17:20:59 +0800 |
---|---|---|
committer | Lans Zhang <jia.zhang@windriver.com> | 2017-07-04 17:20:59 +0800 |
commit | b736677f3f3907be3231c85b1c94f7730bdba0cf (patch) | |
tree | 5d5c7f2fb39099bd2caaf7e336e6bd0516aac8f0 | |
parent | dda0659b716396e4da9e671623039a66200a37a6 (diff) | |
download | meta-secure-core-b736677f3f3907be3231c85b1c94f7730bdba0cf.tar.gz |
initrdscripts-ima: clean up code style and RDEPENDS
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
-rw-r--r-- | meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb b/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb index 3860be2..8e40392 100644 --- a/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb +++ b/meta-integrity/recipes-core/initrdscripts/initrdscripts-ima.bb | |||
@@ -1,47 +1,44 @@ | |||
1 | DESCRIPTION = "The initrd script for Linux Integrity Measurement Architecture (IMA)" | 1 | DESCRIPTION = "The initrd script for Linux Integrity Measurement Architecture (IMA)" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ | 3 | LIC_FILES_CHKSUM = "\ |
4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \ |
5 | 5 | " | |
6 | S = "${WORKDIR}" | ||
7 | |||
8 | ALLOW_EMPTY_${PN} = "1" | ||
9 | 6 | ||
10 | SRC_URI = "\ | 7 | SRC_URI = "\ |
11 | file://init.ima \ | 8 | file://init.ima \ |
12 | " | 9 | " |
13 | 10 | ||
11 | S = "${WORKDIR}" | ||
12 | |||
13 | ALLOW_EMPTY_${PN} = "1" | ||
14 | |||
14 | do_install() { | 15 | do_install() { |
15 | if [ x"${@bb.utils.contains('DISTRO_FEATURES', 'ima', '1', '0', d)}" = x"1" ]; then | 16 | install -m 0500 "${WORKDIR}/init.ima" "${D}" |
16 | install -m 0500 ${WORKDIR}/init.ima ${D} | ||
17 | fi | ||
18 | } | 17 | } |
19 | 18 | ||
20 | FILES_${PN} += " \ | 19 | FILES_${PN} += "\ |
21 | ${@bb.utils.contains('DISTRO_FEATURES', 'ima', '/init.ima', '', d)} \ | 20 | /init.ima \ |
22 | " | 21 | " |
23 | 22 | ||
24 | # Install the minimal stuffs only, and don't care how the external | 23 | # Install the minimal stuffs only, and don't care how the external |
25 | # environment is configured. | 24 | # environment is configured. |
25 | |||
26 | # @bash: sh | 26 | # @bash: sh |
27 | # @coreutils: echo, mkdir, mknod, dirname, basename, cp, rm, sleep | 27 | # @coreutils: echo, printf |
28 | # seq, printf, cut | ||
29 | # @grep: grep | 28 | # @grep: grep |
30 | # @gawk: awk | 29 | # @gawk: awk |
31 | # @kmod: modprobe, depmod | 30 | # @util-linux: mount, umount |
32 | # @net-tools: ifconfig | 31 | # @ima-evm-utils: evmctl |
33 | # @trousers: tcsd | ||
34 | # @procps: pkill | ||
35 | # @util-linux: blkid, mount, umount | ||
36 | RDEPENDS_${PN} += "\ | 32 | RDEPENDS_${PN} += "\ |
37 | bash \ | ||
38 | coreutils \ | 33 | coreutils \ |
39 | grep \ | 34 | grep \ |
40 | gawk \ | 35 | gawk \ |
41 | kmod \ | ||
42 | net-tools \ | ||
43 | procps \ | ||
44 | util-linux-blkid \ | ||
45 | util-linux-mount \ | 36 | util-linux-mount \ |
46 | util-linux-umount \ | 37 | util-linux-umount \ |
38 | ima-evm-utils \ | ||
39 | ima-policy \ | ||
40 | " | ||
41 | |||
42 | RRECOMMENDS_${PN} += "\ | ||
43 | key-store-ima-cert \ | ||
47 | " | 44 | " |