Add image, packagegroups and ditro
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
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
@@ -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
Re: [meta-security][PATCH 1/3] packagegroup: Add initial set of package groups
Quoted 12 lines · Armin Kuster
Signed-off-by Armin Kuster <[email protected]>--- .../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
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 \ + " +
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
Signed-off-by Armin Kuster <[email protected]>--- .../packagegroup/packagegroup-core-security.bb | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+)create mode 100644
recipes-security/packagegroup/packagegroup-core-security.bbrecipes-security/packagegroup/packagegroup-core-security.bb new file +3
-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"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 \ + " +
PATCH 2/3 images: Add initial image
In reply to Armin Kusterthis 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
@@ -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
PATCH 3/3 distro: Add distro
In reply to Armin KusterThis 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
@@ -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
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
Signed-off-by Armin Kuster <[email protected]>--- conf/distro/poky-security.conf | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 conf/distro/poky-security.confconf/distro/poky-security.conf new file +0
-0
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
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
Signed-off-by Armin Kuster <[email protected]>--- 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@@ -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