Return-Path: Received: from www.twobit.us (www.twobit.us [50.19.210.51]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7219AE016D4 for ; Thu, 17 Oct 2013 12:06:24 -0700 (PDT) Received: from c-76-24-20-220.hsd1.ma.comcast.net ([76.24.20.220] helo=longhaul.twobit.us) by www.twobit.us with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VWstp-0004tz-Bf; Thu, 17 Oct 2013 19:06:24 +0000 Received: from flihp by longhaul.twobit.us with local (Exim 4.80) (envelope-from ) id 1VWsti-0007xG-R3; Thu, 17 Oct 2013 19:06:14 +0000 From: Philip Tricca To: yocto@yoctoproject.org Date: Thu, 17 Oct 2013 19:06:10 +0000 Message-Id: <1382036771-30531-5-git-send-email-flihp@twobit.us> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1382036771-30531-1-git-send-email-flihp@twobit.us> References: <1382036771-30531-1-git-send-email-flihp@twobit.us> X-SA-Exim-Connect-IP: 76.24.20.220 X-SA-Exim-Mail-From: flihp@twobit.us X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on www.twobit.us X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-SA-Exim-Version: 4.2.1 (built Mon, 22 Mar 2010 06:26:47 +0000) X-SA-Exim-Scanned: Yes (on www.twobit.us) Subject: [meta-selinux][PATCH 4/5] Add packagegroup and image recipe for minimal SELinux image. X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Oct 2013 19:06:28 -0000 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. --- .../images/core-image-selinux-minimal.bb | 15 +++++++++++ .../packagegroups/packagegroup-selinux-minimal.bb | 26 ++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 recipes-security/images/core-image-selinux-minimal.bb create mode 100644 recipes-security/packagegroups/packagegroup-selinux-minimal.bb 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 @@ +DESCRIPTION = "Minimal image with SELinux support (no python)" + +IMAGE_FEATURES += "splash ssh-server-openssh" + +LICENSE = "MIT" + +IMAGE_INSTALL = "\ + ${CORE_IMAGE_BASE_INSTALL} \ + bash \ + util-linux-agetty \ + packagegroup-core-boot \ + packagegroup-selinux-minimal \ +" + +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..16f6bae --- /dev/null +++ b/recipes-security/packagegroups/packagegroup-selinux-minimal.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "SELinux packagegroup with only packages required for basic operations" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \ + file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +PR = "r0" + +PACKAGES = "\ + ${PN} \ + " + +ALLOW_EMPTY_${PN} = "1" + +RDEPENDS_${PN} = " \ + coreutils \ + libsepol \ + libselinux \ + libselinux-bin \ + libsemanage \ + policycoreutils-fixfiles \ + policycoreutils-secon \ + policycoreutils-semodule \ + policycoreutils-sestatus \ + policycoreutils-setfiles \ + selinux-config \ + refpolicy-mls \ + " -- 1.7.10.4