summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2023-09-12 11:10:39 -0400
committerArmin Kuster <akuster808@gmail.com>2023-09-25 09:47:15 -0400
commitaca6d4a9e7c45cb44ac02062c2750cdfa1679cc6 (patch)
tree063f028dec892e9a80295cbc0b7efbb979626216
parent4f79979c543cb81cc4961225e69eb6b6adad3574 (diff)
downloadmeta-security-aca6d4a9e7c45cb44ac02062c2750cdfa1679cc6.tar.gz
scap-security-guide: Drop Poky patch and update to tip
The Poky patch has been accepted. Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--recipes-compliance/scap-security-guide/files/0002-scap-security-guide-Add-Poky-support.patch74
-rw-r--r--recipes-compliance/scap-security-guide/scap-security-guide_0.1.69.bb3
2 files changed, 1 insertions, 76 deletions
diff --git a/recipes-compliance/scap-security-guide/files/0002-scap-security-guide-Add-Poky-support.patch b/recipes-compliance/scap-security-guide/files/0002-scap-security-guide-Add-Poky-support.patch
deleted file mode 100644
index 1639264..0000000
--- a/recipes-compliance/scap-security-guide/files/0002-scap-security-guide-Add-Poky-support.patch
+++ /dev/null
@@ -1,74 +0,0 @@
1From 2be977a60c944a54594d5786b2d8869ed72a9a06 Mon Sep 17 00:00:00 2001
2From: Armin Kuster <akuster808@gmail.com>
3Date: Wed, 5 Jul 2023 12:57:52 -0400
4Subject: [PATCH 2/2] scap-security-guide: Add Poky support
5
6Signed-off-by: Armin Kuster <akuster808@gmail.com>
7
8Upstream-Status: Pending
9Waiting to see if OE changes get merged.
10Signed-off-by: Armin Kuster <akuster808@gmail.com>
11
12
13---
14 products/openembedded/product.yml | 6 ++++
15 shared/checks/oval/installed_OS_is_poky.xml | 33 +++++++++++++++++++++
16 2 files changed, 39 insertions(+)
17 create mode 100644 shared/checks/oval/installed_OS_is_poky.xml
18
19diff --git a/products/openembedded/product.yml b/products/openembedded/product.yml
20index debf6870ef..d63479d5d3 100644
21--- a/products/openembedded/product.yml
22+++ b/products/openembedded/product.yml
23@@ -17,3 +17,9 @@ cpes:
24 name: "cpe:/o:openembedded:nodistro:"
25 title: "OpenEmbedded nodistro"
26 check_id: installed_OS_is_openembedded
27+
28+ - poky:
29+ name: "cpe:/o:openembedded:poky:"
30+ title: "OpenEmbedded Poky reference distribution"
31+ check_id: installed_OS_is_poky
32+
33diff --git a/shared/checks/oval/installed_OS_is_poky.xml b/shared/checks/oval/installed_OS_is_poky.xml
34new file mode 100644
35index 0000000000..b8805cf31b
36--- /dev/null
37+++ b/shared/checks/oval/installed_OS_is_poky.xml
38@@ -0,0 +1,33 @@
39+<def-group>
40+ <definition class="inventory" id="installed_OS_is_poky" version="1">
41+ <metadata>
42+ <title>Poky</title>
43+ <affected family="unix">
44+ <platform>multi_platform_all</platform>
45+ </affected>
46+ <description>The operating system installed is a Poky based System</description>
47+ </metadata>
48+ <criteria comment="System is Poky based distribution" operator="AND">
49+ <extend_definition comment="Installed OS is part of the Unix family" definition_ref="installed_OS_is_part_of_Unix_family" />
50+ <criterion comment="Poky based distro" test_ref="test_os_poky" />
51+ <criterion comment="Poky based distribution is installed" test_ref="test_poky" />
52+ </criteria>
53+ </definition>
54+
55+ <unix:file_test check="all" check_existence="all_exist" comment="/etc/os-release exists" id="test_os_poky" version="1">
56+ <unix:object object_ref="obj_os_poky" />
57+ </unix:file_test>
58+ <unix:file_object comment="check /etc/os-release file" id="obj_os_poky" version="1">
59+ <unix:filepath>/etc/os-release</unix:filepath>
60+ </unix:file_object>
61+
62+ <ind:textfilecontent54_test check="all" check_existence="at_least_one_exists" comment="Check OpenEmbedded" id="test_poky" version="1">
63+ <ind:object object_ref="obj_poky" />
64+ </ind:textfilecontent54_test>
65+ <ind:textfilecontent54_object id="obj_poky" version="1" comment="Check Poky">
66+ <ind:filepath>/etc/os-release</ind:filepath>
67+ <ind:pattern operation="pattern match">^ID=poky$</ind:pattern>
68+ <ind:instance datatype="int">1</ind:instance>
69+ </ind:textfilecontent54_object>
70+
71+</def-group>
72--
732.34.1
74
diff --git a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.69.bb b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.69.bb
index ac839de..23637a5 100644
--- a/recipes-compliance/scap-security-guide/scap-security-guide_0.1.69.bb
+++ b/recipes-compliance/scap-security-guide/scap-security-guide_0.1.69.bb
@@ -6,11 +6,10 @@ HOME_URL = "https://www.open-scap.org/security-policies/scap-security-guide/"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=9bfa86579213cb4c6adaffface6b2820" 6LIC_FILES_CHKSUM = "file://LICENSE;md5=9bfa86579213cb4c6adaffface6b2820"
7LICENSE = "BSD-3-Clause" 7LICENSE = "BSD-3-Clause"
8 8
9SRCREV = "d09e81ae00509a9be4b01359166cfbece06e47f4" 9SRCREV = "da283b9a360f2f42ad642c0c9b08b061501bc667"
10SRC_URI = "git://github.com/ComplianceAsCode/content.git;branch=master;protocol=https \ 10SRC_URI = "git://github.com/ComplianceAsCode/content.git;branch=master;protocol=https \
11 file://run_eval.sh \ 11 file://run_eval.sh \
12 file://run-ptest \ 12 file://run-ptest \
13 file://0002-scap-security-guide-Add-Poky-support.patch \
14 " 13 "
15 14
16 15