diff options
author | Philip Tricca <flihp@twobit.us> | 2015-11-08 19:00:37 +0000 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-11-27 09:18:13 -0500 |
commit | fd41e8b70221ae385698a251212ca57073189d47 (patch) | |
tree | 7e252bb4801f946281347ba2c9940c88da125fbf | |
parent | bfaf278116e6c3a04bb82c9f8a4f8629a0a85df8 (diff) | |
download | meta-selinux-fd41e8b70221ae385698a251212ca57073189d47.tar.gz |
selinux-config: Separate init script into new recipe.
Add runtime dependencies for init script.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r-- | recipes-security/packagegroups/packagegroup-core-selinux.bb | 1 | ||||
-rw-r--r-- | recipes-security/packagegroups/packagegroup-selinux-minimal.bb | 1 | ||||
-rw-r--r-- | recipes-security/selinux/selinux-config_0.1.bb | 14 | ||||
-rw-r--r-- | recipes-security/selinux/selinux-init/selinux-init.sh (renamed from recipes-security/selinux/selinux-config/selinux-init.sh) | 0 | ||||
-rw-r--r-- | recipes-security/selinux/selinux-init_0.1.bb | 37 |
5 files changed, 40 insertions, 13 deletions
diff --git a/recipes-security/packagegroups/packagegroup-core-selinux.bb b/recipes-security/packagegroups/packagegroup-core-selinux.bb index 40b35d1..472bf55 100644 --- a/recipes-security/packagegroups/packagegroup-core-selinux.bb +++ b/recipes-security/packagegroups/packagegroup-core-selinux.bb | |||
@@ -23,6 +23,7 @@ RDEPENDS_${PN} = " \ | |||
23 | setools \ | 23 | setools \ |
24 | setools-console \ | 24 | setools-console \ |
25 | selinux-config \ | 25 | selinux-config \ |
26 | selinux-init \ | ||
26 | refpolicy-standard \ | 27 | refpolicy-standard \ |
27 | refpolicy-mls \ | 28 | refpolicy-mls \ |
28 | coreutils \ | 29 | coreutils \ |
diff --git a/recipes-security/packagegroups/packagegroup-selinux-minimal.bb b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb index 2ff16f8..42fb82d 100644 --- a/recipes-security/packagegroups/packagegroup-selinux-minimal.bb +++ b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb | |||
@@ -22,5 +22,6 @@ RDEPENDS_${PN} = "\ | |||
22 | policycoreutils-sestatus \ | 22 | policycoreutils-sestatus \ |
23 | policycoreutils-setfiles \ | 23 | policycoreutils-setfiles \ |
24 | selinux-config \ | 24 | selinux-config \ |
25 | selinux-init \ | ||
25 | refpolicy-mls \ | 26 | refpolicy-mls \ |
26 | " | 27 | " |
diff --git a/recipes-security/selinux/selinux-config_0.1.bb b/recipes-security/selinux/selinux-config_0.1.bb index f77b490..37fe4b7 100644 --- a/recipes-security/selinux/selinux-config_0.1.bb +++ b/recipes-security/selinux/selinux-config_0.1.bb | |||
@@ -13,23 +13,11 @@ PR = "r4" | |||
13 | 13 | ||
14 | S = "${WORKDIR}" | 14 | S = "${WORKDIR}" |
15 | 15 | ||
16 | SRC_URI = "file://selinux-init.sh" | 16 | CONFFILES_${PN} += "${sysconfdir}/selinux/config" |
17 | |||
18 | inherit update-rc.d | ||
19 | |||
20 | INITSCRIPT_NAME = "0selinux-init" | ||
21 | INITSCRIPT_PARAMS = "start 00 S ." | ||
22 | |||
23 | CONFFILES_${PN} += "${sysconfdir}/selinux/config \ | ||
24 | ${sysconfdir}/init.d/0selinux-init \ | ||
25 | " | ||
26 | 17 | ||
27 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 18 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
28 | 19 | ||
29 | do_install () { | 20 | do_install () { |
30 | install -d ${D}${sysconfdir}/init.d/ | ||
31 | install -m 0755 ${WORKDIR}/selinux-init.sh ${D}${sysconfdir}/init.d/0selinux-init | ||
32 | |||
33 | echo "\ | 21 | echo "\ |
34 | # This file controls the state of SELinux on the system. | 22 | # This file controls the state of SELinux on the system. |
35 | # SELINUX= can take one of these three values: | 23 | # SELINUX= can take one of these three values: |
diff --git a/recipes-security/selinux/selinux-config/selinux-init.sh b/recipes-security/selinux/selinux-init/selinux-init.sh index f9f0914..f9f0914 100644 --- a/recipes-security/selinux/selinux-config/selinux-init.sh +++ b/recipes-security/selinux/selinux-init/selinux-init.sh | |||
diff --git a/recipes-security/selinux/selinux-init_0.1.bb b/recipes-security/selinux/selinux-init_0.1.bb new file mode 100644 index 0000000..d8e4944 --- /dev/null +++ b/recipes-security/selinux/selinux-init_0.1.bb | |||
@@ -0,0 +1,37 @@ | |||
1 | SUMMARY = "SELinux init script" | ||
2 | DESCRIPTION = "\ | ||
3 | SELinux start up stuff for Yocto. \ | ||
4 | " | ||
5 | |||
6 | SECTION = "base" | ||
7 | LICENSE = "MIT" | ||
8 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
9 | |||
10 | ${PN}_RDEPENDS = " \ | ||
11 | coreutils \ | ||
12 | libselinux-bin \ | ||
13 | policycoreutils-secon \ | ||
14 | policycoreutils-setfiles \ | ||
15 | " | ||
16 | |||
17 | S = "${WORKDIR}" | ||
18 | |||
19 | SRC_URI = "file://selinux-init.sh" | ||
20 | |||
21 | inherit update-rc.d | ||
22 | |||
23 | INITSCRIPT_NAME = "0selinux-init" | ||
24 | INITSCRIPT_PARAMS = "start 00 S ." | ||
25 | |||
26 | CONFFILES_${PN} += "${sysconfdir}/init.d/0selinux-init" | ||
27 | |||
28 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
29 | |||
30 | do_install () { | ||
31 | install -d ${D}${sysconfdir}/init.d/ | ||
32 | install -m 0755 ${WORKDIR}/selinux-init.sh ${D}${sysconfdir}/init.d/0selinux-init | ||
33 | } | ||
34 | |||
35 | sysroot_stage_all_append () { | ||
36 | sysroot_stage_dir ${D}${sysconfdir} ${SYSROOT_DESTDIR}${sysconfdir} | ||
37 | } | ||