diff options
| -rw-r--r-- | recipes-core/images/security-test-image.bb | 26 | ||||
| -rw-r--r-- | recipes-core/packagegroup/packagegroup-core-security.bb | 14 |
2 files changed, 16 insertions, 24 deletions
diff --git a/recipes-core/images/security-test-image.bb b/recipes-core/images/security-test-image.bb index c71d726..babe3fd 100644 --- a/recipes-core/images/security-test-image.bb +++ b/recipes-core/images/security-test-image.bb | |||
| @@ -1,33 +1,11 @@ | |||
| 1 | DESCRIPTION = "A small image for testing meta-security packages" | 1 | DESCRIPTION = "A small image for testing meta-security packages" |
| 2 | 2 | ||
| 3 | require security-build-image.bb | ||
| 4 | |||
| 3 | IMAGE_FEATURES += "ssh-server-openssh" | 5 | IMAGE_FEATURES += "ssh-server-openssh" |
| 4 | 6 | ||
| 5 | TEST_SUITES = "ssh ping ptest apparmor clamav samhain sssd tripwire checksec smack suricata" | 7 | TEST_SUITES = "ssh ping ptest apparmor clamav samhain sssd tripwire checksec smack suricata" |
| 6 | 8 | ||
| 7 | INSTALL_CLAMAV_CVD = "1" | 9 | INSTALL_CLAMAV_CVD = "1" |
| 8 | 10 | ||
| 9 | IMAGE_INSTALL = "\ | ||
| 10 | packagegroup-base \ | ||
| 11 | packagegroup-core-boot \ | ||
| 12 | packagegroup-core-security-ptest \ | ||
| 13 | clamav \ | ||
| 14 | tripwire \ | ||
| 15 | checksec \ | ||
| 16 | suricata \ | ||
| 17 | samhain-standalone \ | ||
| 18 | ${@bb.utils.contains("DISTRO_FEATURES", "pam", "sssd", "",d)} \ | ||
| 19 | ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", "apparmor", "",d)} \ | ||
| 20 | ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-test", "",d)} \ | ||
| 21 | os-release \ | ||
| 22 | " | ||
| 23 | |||
| 24 | |||
| 25 | IMAGE_LINGUAS ?= " " | ||
| 26 | |||
| 27 | LICENSE = "MIT" | ||
| 28 | |||
| 29 | inherit core-image | ||
| 30 | |||
| 31 | export IMAGE_BASENAME = "security-test-image" | ||
| 32 | |||
| 33 | IMAGE_ROOTFS_EXTRA_SPACE = "5242880" | 11 | IMAGE_ROOTFS_EXTRA_SPACE = "5242880" |
diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb index 789f4ea..9546e0f 100644 --- a/recipes-core/packagegroup/packagegroup-core-security.bb +++ b/recipes-core/packagegroup/packagegroup-core-security.bb | |||
| @@ -13,6 +13,7 @@ PACKAGES = "\ | |||
| 13 | packagegroup-security-hardening \ | 13 | packagegroup-security-hardening \ |
| 14 | packagegroup-security-ids \ | 14 | packagegroup-security-ids \ |
| 15 | packagegroup-security-mac \ | 15 | packagegroup-security-mac \ |
| 16 | ${@bb.utils.contains("DISTRO_FEATURES", "ptest", "packagegroup-meta-security-ptest-packages", "", d)} \ | ||
| 16 | " | 17 | " |
| 17 | 18 | ||
| 18 | RDEPENDS_packagegroup-core-security = "\ | 19 | RDEPENDS_packagegroup-core-security = "\ |
| @@ -22,6 +23,7 @@ RDEPENDS_packagegroup-core-security = "\ | |||
| 22 | packagegroup-security-hardening \ | 23 | packagegroup-security-hardening \ |
| 23 | packagegroup-security-ids \ | 24 | packagegroup-security-ids \ |
| 24 | packagegroup-security-mac \ | 25 | packagegroup-security-mac \ |
| 26 | ${@bb.utils.contains("DISTRO_FEATURES", "ptest", "packagegroup-meta-security-ptest-packages", "", d)} \ | ||
| 25 | " | 27 | " |
| 26 | 28 | ||
| 27 | SUMMARY_packagegroup-security-utils = "Security utilities" | 29 | SUMMARY_packagegroup-security-utils = "Security utilities" |
| @@ -76,3 +78,15 @@ RDEPENDS_packagegroup-security-mac = " \ | |||
| 76 | ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", "apparmor", "",d)} \ | 78 | ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", "apparmor", "",d)} \ |
| 77 | ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack", "",d)} \ | 79 | ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack", "",d)} \ |
| 78 | " | 80 | " |
| 81 | |||
| 82 | RDEPENDS_packagegroup-meta-security-ptest-packages = "\ | ||
| 83 | ptest-runner \ | ||
| 84 | samhain-standalone-ptest \ | ||
| 85 | libseccomp-ptest \ | ||
| 86 | python3-scapy-ptest \ | ||
| 87 | suricata-ptest \ | ||
| 88 | tripwire-ptest \ | ||
| 89 | python3-fail2ban-ptest \ | ||
| 90 | ${@bb.utils.contains("DISTRO_FEATURES", "apparmor", "apparmor-ptest", "",d)} \ | ||
| 91 | ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-ptest", "",d)} \ | ||
| 92 | " | ||
