Skip to content

Commit be555d4

Browse files
author
Kazuki Omo
committed
For Issue #18 ( Fix issue for Rocky Linux 8.4 #18 )
1 parent d39acc8 commit be555d4

31 files changed

Lines changed: 92 additions & 91 deletions

ComplianceAsCode/content_for_supporting_rocky8/files/diff_content_for_supporting_rocky8

Lines changed: 7 additions & 6 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

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)