Skip to contentSkip to conversation

Add image, packagegroups and ditro

PATCH In review Armin Kuster 3 participants 8 messages Jul 10, 2014 – Jul 14, 2014

lore
Share & tools
lore
#0 lore raw

cover Add image, packagegroups and ditro

To aid in testing I have create an image and packagegroups.

By setting "DISTRO=poky-security" in the local.conf, the security_flag.inc will be included.

This was varified by checksec utility.

Armin Kuster (3):
packagegroup: Add initial set of package groups
images: Add initial image
distro: Add distro

 conf/distro/poky-security.conf                     |  4 ++
 recipes-security/images/core-image-security.bb     | 19 +++++++++
 .../packagegroup/packagegroup-core-security.bb     | 45 ++++++++++++++++++++++
 3 files changed, 68 insertions(+)
 create mode 100644 conf/distro/poky-security.conf
 create mode 100644 recipes-security/images/core-image-security.bb
 create mode 100644 recipes-security/packagegroup/packagegroup-core-security.bb
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/3 packagegroup: Add initial set of package groups

---
 .../packagegroup/packagegroup-core-security.bb     | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 recipes-security/packagegroup/packagegroup-core-security.bb
recipes-security/packagegroup/packagegroup-core-security.bb new file +45 -0
new file mode 100644
index 0000000..1acc4a9
@@ -0,0 +1,45 @@
+DESCRIPTION = "Security packagegroup for Poky"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+PR = "r0"
+
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-core-security \
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+RDEPENDS_packagegroup-core-security = "\
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+SUMMARY_packagegroup-security-utils = "Security utilities"
+RDEPENDS_packagegroup-security-utils = "\
+    nmap \
+    libseccomp \
+    pinentry \
+    ${@bb.utils.contains("DISTRO_FEATURES", "pax", "pax-utils", "",d)} \
+    "
+
+SUMMARY_packagegroup-security-scanners = "Security scanners"
+RDEPENDS_packagegroup-security-scanners = "\
+    nikto \
+    checksecurity \
+	"
+
+SUMMARY_packagegroup-security-audit = "Security Audit tools "
+RDEPENDS_packagegroup-security-audit = " \
+    buck-security \
+    redhat-security \
+    "
+
+SUMMARY_packagegroup-security-hardening = "Security Hardening tools"
+RDEPENDS_packagegroup-security-hardening = " \
+    bastille \
+    "
+
Signature · 1 line
1.9.1
#2 lore raw

Re: [meta-security][PATCH 1/3] packagegroup: Add initial set of package groups

Quoted 12 lines · Armin Kuster
---
  .../packagegroup/packagegroup-core-security.bb     | 45 ++++++++++++++++++++++
  1 file changed, 45 insertions(+)

create mode 100644 recipes-security/packagegroup/packagegroup-core-security.bb

recipes-security/packagegroup/packagegroup-core-security.bb new file +0 -0
new file mode 100644
index 0000000..1acc4a9

recipes-security/packagegroup/packagegroup-core-security.bb line 7

Quoted 7 lines
recipes-security/packagegroup/packagegroup-core-security.bb new file +7 -0
@@ -0,0 +1,45 @@
+DESCRIPTION = "Security packagegroup for Poky"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+PR = "r0"
+

You can drop the PR as they are un-needed now with the PR Server

Quoted 39 lines
recipes-security/packagegroup/packagegroup-core-security.bb new file +38 -0
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-core-security \
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+RDEPENDS_packagegroup-core-security = "\
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+SUMMARY_packagegroup-security-utils = "Security utilities"
+RDEPENDS_packagegroup-security-utils = "\
+    nmap \
+    libseccomp \
+    pinentry \
+    ${@bb.utils.contains("DISTRO_FEATURES", "pax", "pax-utils", "",d)} \
+    "
+
+SUMMARY_packagegroup-security-scanners = "Security scanners"
+RDEPENDS_packagegroup-security-scanners = "\
+    nikto \
+    checksecurity \
+	"
+
+SUMMARY_packagegroup-security-audit = "Security Audit tools "
+RDEPENDS_packagegroup-security-audit = " \
+    buck-security \
+    redhat-security \
+    "
+
+SUMMARY_packagegroup-security-hardening = "Security Hardening tools"
+RDEPENDS_packagegroup-security-hardening = " \
+    bastille \
+    "
+
author
#3 lore raw

Re: [meta-security][PATCH 1/3] packagegroup: Add initial set of package groups

will fix in V2 .

thanks,
Armin

Quoted 66 lines · Saul Wold
Quoted 20 lines · Armin Kuster
---
  .../packagegroup/packagegroup-core-security.bb     | 45 
++++++++++++++++++++++
  1 file changed, 45 insertions(+)

create mode 100644
recipes-security/packagegroup/packagegroup-core-security.bb

recipes-security/packagegroup/packagegroup-core-security.bb new file +3 -0
new file mode 100644
index 0000000..1acc4a9
@@ -0,0 +1,45 @@
+DESCRIPTION = "Security packagegroup for Poky"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 

"file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+ file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

recipes-security/packagegroup/packagegroup-core-security.bb line 7

Quoted 3 lines
recipes-security/packagegroup/packagegroup-core-security.bb new file +3 -0
+
+PR = "r0"
+

You can drop the PR as they are un-needed now with the PR Server

Quoted 40 lines
recipes-security/packagegroup/packagegroup-core-security.bb new file +19 -0
+inherit packagegroup
+
+PACKAGES = "\
+    packagegroup-core-security \
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+RDEPENDS_packagegroup-core-security = "\
+    packagegroup-security-utils \
+    packagegroup-security-scanners \
+    "
+
+SUMMARY_packagegroup-security-utils = "Security utilities"
+RDEPENDS_packagegroup-security-utils = "\
+    nmap \
+    libseccomp \
+    pinentry \
+    ${@bb.utils.contains("DISTRO_FEATURES", "pax", "pax-utils", 

"",d)} \

recipes-security/packagegroup/packagegroup-core-security.bb new file +19 -0
+    "
+
+SUMMARY_packagegroup-security-scanners = "Security scanners"
+RDEPENDS_packagegroup-security-scanners = "\
+    nikto \
+    checksecurity \
+    "
+
+SUMMARY_packagegroup-security-audit = "Security Audit tools "
+RDEPENDS_packagegroup-security-audit = " \
+    buck-security \
+    redhat-security \
+    "
+
+SUMMARY_packagegroup-security-hardening = "Security Hardening tools"
+RDEPENDS_packagegroup-security-hardening = " \
+    bastille \
+    "
+
#4 lore raw

PATCH 2/3 images: Add initial image

In reply to Armin Kuster

this will aid in testing

---
 recipes-security/images/core-image-security.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 recipes-security/images/core-image-security.bb
recipes-security/images/core-image-security.bb new file +19 -0
new file mode 100644
index 0000000..1781c35
@@ -0,0 +1,19 @@
+DESCRIPTION = "Image with Security utilities support" 
+LICENSE = "MIT"
+
+IMAGE_FEATURES += "splash ssh-server-openssh"
+
+IMAGE_LINGUAS = " "
+
+IMAGE_INSTALL = "\
+	${CORE_IMAGE_BASE_INSTALL} \
+	util-linux-agetty \
+	packagegroup-core-full-cmdline \
+	packagegroup-core-security \
+"   
+
+inherit core-image distro_features_check
+
+DISTRO_FEATURES = "pax"
+
+
Signature · 1 line
1.9.1
#5 lore raw

PATCH 3/3 distro: Add distro

In reply to Armin Kuster

This allows us to include security_flags.inc

---
 conf/distro/poky-security.conf | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 conf/distro/poky-security.conf
conf/distro/poky-security.conf new file +4 -0
new file mode 100644
index 0000000..5092dfa
@@ -0,0 +1,4 @@
+require conf/distro/poky.conf
+require conf/distro/include/security_flags.inc
+
+DISTRO = "poky-security"
Signature · 1 line
1.9.1
#6 lore raw

Re: [meta-security][PATCH 3/3] distro: Add distro

Hi Armin,

Quoted 14 lines · On Thursday 10 July 2014 07:30:33 Armin Kuster wrote:

This allows us to include security_flags.inc

---
 conf/distro/poky-security.conf | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 conf/distro/poky-security.conf
conf/distro/poky-security.conf new file +0 -0
new file mode 100644
index 0000000..5092dfa

conf/distro/poky-security.conf line 4

Quoted 4 lines
conf/distro/poky-security.conf new file +4 -0
@@ -0,0 +1,4 @@
+require conf/distro/poky.conf
+require conf/distro/include/security_flags.inc
+
+DISTRO = "poky-security"

AIUI, meta-security is supposed to be simply a layer providing additional recipes; thus adding a distro config to this wouldn't really be right.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#7 lore raw

Re: [meta-security][PATCH 3/3] distro: Add distro

Paul,

Quoted 11 lines · Paul Eggleton

Hi Armin,

Quoted 8 lines · On Thursday 10 July 2014 07:30:33 Armin Kuster wrote:

This allows us to include security_flags.inc

---
  conf/distro/poky-security.conf | 4 ++++
  1 file changed, 4 insertions(+)

create mode 100644 conf/distro/poky-security.conf

Quoted 12 lines

conf/distro/poky-security.conf line 4

Quoted 10 lines
conf/distro/poky-security.conf new file +4 -0
new file mode 100644
index 0000000..5092dfa
@@ -0,0 +1,4 @@
+require conf/distro/poky.conf
+require conf/distro/include/security_flags.inc
+
+DISTRO = "poky-security"

AIUI, meta-security is supposed to be simply a layer providing additional recipes; thus adding a distro config to this wouldn't really be right.

Sure the distro config patch can be dropped.

Thanks for the feedback.

regards,
Armin

Quoted 4 lines

Cheers,
Paul