Skip to content

Commit 98a0006

Browse files
authored
Merge pull request #19 from omok314159/issue18
Issue18
2 parents 237c79a + be555d4 commit 98a0006

30 files changed

Lines changed: 94 additions & 93 deletions

ComplianceAsCode/content_for_supporting_rocky8/files/diff_content_for_supporting_rocky8

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
11
diff -Nru content.org/CMakeLists.txt content/CMakeLists.txt
22
--- content.org/CMakeLists.txt 2021-05-03 07:27:49.961754374 +0900
33
+++ content/CMakeLists.txt 2021-05-03 07:29:29.739430343 +0900
4-
@@ -88,6 +88,7 @@
4+
@@ -92,6 +92,7 @@
55
option(SSG_PRODUCT_VSEL "If enabled, the McAfee VSEL SCAP content will be built" ${SSG_PRODUCT_DEFAULT})
66
option(SSG_PRODUCT_WRLINUX8 "If enabled, the WRLinux8 SCAP content will be built" ${SSG_PRODUCT_DEFAULT})
77
option(SSG_PRODUCT_WRLINUX1019 "If enabled, the WRLinux1019 SCAP content will be built" ${SSG_PRODUCT_DEFAULT})
88
+option(SSG_PRODUCT_ROCKY8 "If enabled, the ROCKY8 SCAP content will be built" ${SSG_PRODUCT_DEFAULT})
99

1010
option(SSG_CENTOS_DERIVATIVES_ENABLED "If enabled, CentOS derivative content will be built from the RHEL content" TRUE)
1111
option(SSG_SCIENTIFIC_LINUX_DERIVATIVES_ENABLED "If enabled, Scientific Linux derivative content will be built from the RHEL content" TRUE)
12-
@@ -277,6 +278,7 @@
12+
@@ -285,6 +286,7 @@
1313
message(STATUS "McAfee VSEL: ${SSG_PRODUCT_VSEL}")
1414
message(STATUS "WRLinux 8: ${SSG_PRODUCT_WRLINUX8}")
1515
message(STATUS "WRLinux 1019: ${SSG_PRODUCT_WRLINUX1019}")
1616
+message(STATUS "ROCKY 8: ${SSG_PRODUCT_ROCKY8}")
1717

1818

1919

20-
@@ -399,6 +401,10 @@
20+
@@ -407,6 +409,10 @@
2121
if (SSG_PRODUCT_WRLINUX1019)
22-
add_subdirectory("wrlinux1019")
22+
add_subdirectory("products/wrlinux1019" "wrlinux1019")
2323
endif()
2424
+if (SSG_PRODUCT_ROCKY8)
25-
+ add_subdirectory("rocky8")
25+
+ add_subdirectory("products/rocky8" "rocky8")
2626
+endif()
2727
+
2828

2929
# ZIP only contains source datastreams and kickstarts, people who
3030
# want sources to build from should get the tarball instead.
31+
3132
diff -Nru content.org/build_product content/build_product
3233
--- content.org/build_product 2021-05-03 07:27:50.029755540 +0900
3334
+++ content/build_product 2021-05-03 07:29:29.739430343 +0900
34-
@@ -295,6 +295,7 @@
35+
@@ -309,6 +309,7 @@
3536
VSEL
3637
WRLINUX8
3738
WRLINUX1019
@@ -74,15 +75,15 @@ diff -Nru content.org/ssg/constants.py content/ssg/constants.py
7475
]
7576

7677
JINJA_MACROS_BASE_DEFINITIONS = os.path.join(os.path.dirname(os.path.dirname(
77-
@@ -180,6 +181,7 @@
78+
@@ -181,6 +182,7 @@
7879
"Ubuntu 20.04": "ubuntu2004",
7980
"WRLinux 8": "wrlinux8",
8081
"WRLinux 1019": "wrlinux1019",
8182
+ "Rocky Linux 8": "rocky8",
8283
}
8384

8485

85-
@@ -194,7 +196,7 @@
86+
@@ -195,7 +197,7 @@
8687
}
8788

8889
MULTI_PLATFORM_LIST = ["rhel", "fedora", "rhosp", "rhv", "debian", "ubuntu",
@@ -91,15 +92,15 @@ diff -Nru content.org/ssg/constants.py content/ssg/constants.py
9192

9293
MULTI_PLATFORM_MAPPING = {
9394
"multi_platform_debian": ["debian9", "debian10"],
94-
@@ -210,6 +212,7 @@
95+
@@ -211,6 +213,7 @@
9596
"multi_platform_sle": ["sle12", "sle15"],
9697
"multi_platform_ubuntu": ["ubuntu1604", "ubuntu1804", "ubuntu2004"],
9798
"multi_platform_wrlinux": ["wrlinux8", "wrlinux1019"],
9899
+ "multi_platform_wrlinux": ["rocky8"],
99100
}
100101

101102
RHEL_CENTOS_CPE_MAPPING = {
102-
@@ -375,6 +378,7 @@
103+
@@ -376,6 +379,7 @@
103104
'ol': 'Oracle Linux',
104105
'ocp': 'Red Hat OpenShift Container Platform',
105106
'rhcos': 'Red Hat Enterprise Linux CoreOS',

ComplianceAsCode/content_for_supporting_rocky8/files/installed_OS_is_rocky8.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
</ind:textfilecontent54_test>
3939
<ind:textfilecontent54_object id="obj_version_rocky8" version="1" comment="Check os-release VERSION_ID">
4040
<ind:filepath>/etc/os-release</ind:filepath>
41-
<ind:pattern operation="pattern match">^VERSION_ID=&quot;(\d)&quot;$</ind:pattern>
41+
<ind:pattern operation="pattern match">^VERSION_ID=&quot;(\d.*)&quot;$</ind:pattern>
4242
<ind:instance datatype="int">1</ind:instance>
4343
</ind:textfilecontent54_object>
4444
<ind:textfilecontent54_state id="state_version_rocky8" version="1">
45-
<ind:subexpression>8</ind:subexpression>
45+
<ind:subexpression operation="pattern match">^8.*$</ind:subexpression>
4646
</ind:textfilecontent54_state>
4747
</def-group>

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/product.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ product: rocky8
22
full_name: Rocky Linux 8
33
type: platform
44

5-
benchmark_root: "../linux_os/guide"
5+
benchmark_root: "../../linux_os/guide"
66

77
profiles_root: "./profiles"
88

@@ -19,7 +19,7 @@ rocky_major_version: "8"
1919

2020
oval_feed_url: "https://www.redhat.com/security/data/oval/com.redhat.rhsa-RHEL8.xml"
2121

22-
cpes_root: "../shared/applicability"
22+
cpes_root: "../../shared/applicability"
2323
cpes:
2424
- rocky8:
2525
name: "cpe:/o:rocky:rocky:8"

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/anssi_bp28_enhanced.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ documentation_complete: true
33
title: 'ANSSI-BP-028 (enhanced)'
44

55
description: |-
6-
This profile contains configurations that align to ANSSI-BP-028 at the enhanced hardening level.
6+
This profile contains configurations that align to ANSSI-BP-028 v1.2 at the enhanced hardening level.
77

88
ANSSI is the French National Information Security Agency, and stands for Agence nationale de la sécurité des systèmes d'information.
99
ANSSI-BP-028 is a configuration recommendation for GNU/Linux systems.

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/anssi_bp28_high.profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
documentation_complete: true
22

3-
title: 'DRAFT - ANSSI-BP-028 (high)'
3+
title: 'ANSSI-BP-028 (high)'
44

55
description: |-
6-
This profile contains configurations that align to ANSSI-BP-028 at the high hardening level.
6+
This profile contains configurations that align to ANSSI-BP-028 v1.2 at the high hardening level.
77

88
ANSSI is the French National Information Security Agency, and stands for Agence nationale de la sécurité des systèmes d'information.
99
ANSSI-BP-028 is a configuration recommendation for GNU/Linux systems.

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/anssi_bp28_intermediary.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ documentation_complete: true
33
title: 'ANSSI-BP-028 (intermediary)'
44

55
description: |-
6-
This profile contains configurations that align to ANSSI-BP-028 at the intermediary hardening level.
6+
This profile contains configurations that align to ANSSI-BP-028 v1.2 at the intermediary hardening level.
77

88
ANSSI is the French National Information Security Agency, and stands for Agence nationale de la sécurité des systèmes d'information.
99
ANSSI-BP-028 is a configuration recommendation for GNU/Linux systems.

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/anssi_bp28_minimal.profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ documentation_complete: true
33
title: 'ANSSI-BP-028 (minimal)'
44

55
description: |-
6-
This profile contains configurations that align to ANSSI-BP-028 at the minimal hardening level.
6+
This profile contains configurations that align to ANSSI-BP-028 v1.2 at the minimal hardening level.
77

88
ANSSI is the French National Information Security Agency, and stands for Agence nationale de la sécurité des systèmes d'information.
99
ANSSI-BP-028 is a configuration recommendation for GNU/Linux systems.

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/cis.profile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ selections:
128128
- package_sudo_installed
129129

130130
### 1.3.2 Ensure sudo commands use pty (Scored)
131-
# NEEDS RULE - https://github.com/ComplianceAsCode/content/issues/5220
131+
- sudo_add_use_pty
132132

133133
### 1.3.3 Ensure sudo log file exists (Scored)
134-
# NEEDS RULE - https://github.com/ComplianceAsCode/content/issues/5221
134+
- sudo_custom_logfile
135135

136136
## 1.4 Filesystem Integrity Checking
137137

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/rhelh-stig.profile

Lines changed: 0 additions & 13 deletions
This file was deleted.

ComplianceAsCode/content_for_supporting_rocky8/files/rocky8/profiles/rhelh-vpp.profile

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)