diff options
author | Philip Tricca <flihp@twobit.us> | 2013-10-09 12:41:00 +0000 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2013-10-15 14:31:17 -0400 |
commit | 8c2e551a7cd32fac06d76cd076a05f7f36f42bfa (patch) | |
tree | cb32638818266bfdd70687aa306b6a9cfe64105c | |
parent | 0e35edc4ee6f5b68fc065fa3c2e2bfc1646f7f71 (diff) | |
download | meta-selinux-8c2e551a7cd32fac06d76cd076a05f7f36f42bfa.tar.gz |
Add packagegroup and image recipe for minimal SELinux image.
This is intended to demonstrate the minimal set packages necessary
to boot and load a system with SELinux enabled. Specifically we
don't need any of the packages that depend on python.
Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Joe MacDonald <joe@deserted.net>
-rw-r--r-- | recipes-security/images/core-image-selinux-minimal.bb | 15 | ||||
-rw-r--r-- | recipes-security/packagegroups/packagegroup-selinux-minimal.bb | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/recipes-security/images/core-image-selinux-minimal.bb b/recipes-security/images/core-image-selinux-minimal.bb new file mode 100644 index 0000000..45cd847 --- /dev/null +++ b/recipes-security/images/core-image-selinux-minimal.bb | |||
@@ -0,0 +1,15 @@ | |||
1 | DESCRIPTION = "Minimal image with SELinux support (no python)" | ||
2 | |||
3 | IMAGE_FEATURES += "splash ssh-server-openssh" | ||
4 | |||
5 | LICENSE = "MIT" | ||
6 | |||
7 | IMAGE_INSTALL = "\ | ||
8 | ${CORE_IMAGE_BASE_INSTALL} \ | ||
9 | bash \ | ||
10 | util-linux-agetty \ | ||
11 | packagegroup-core-boot \ | ||
12 | packagegroup-selinux-minimal \ | ||
13 | " | ||
14 | |||
15 | inherit core-image | ||
diff --git a/recipes-security/packagegroups/packagegroup-selinux-minimal.bb b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb new file mode 100644 index 0000000..bae15ea --- /dev/null +++ b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb | |||
@@ -0,0 +1,26 @@ | |||
1 | DESCRIPTION = "SELinux packagegroup with only packages required for basic operations" | ||
2 | LICENSE = "MIT" | ||
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ | ||
4 | file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | ||
5 | PR = "r0" | ||
6 | |||
7 | PACKAGES = "\ | ||
8 | ${PN} \ | ||
9 | " | ||
10 | |||
11 | ALLOW_EMPTY_${PN} = "1" | ||
12 | |||
13 | RDEPENDS_${PN} = "\ | ||
14 | coreutils \ | ||
15 | libsepol \ | ||
16 | libselinux \ | ||
17 | libselinux-bin \ | ||
18 | libsemanage \ | ||
19 | policycoreutils-fixfiles \ | ||
20 | policycoreutils-secon \ | ||
21 | policycoreutils-semodule \ | ||
22 | policycoreutils-sestatus \ | ||
23 | policycoreutils-setfiles \ | ||
24 | selinux-config \ | ||
25 | refpolicy-mls \ | ||
26 | " | ||