From d109f3f869aab4e181cf60d2802ab41e88c1eeb5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jul 2019 22:50:49 +0000 Subject: [PATCH 01/76] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- scap-security-guide.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 49583e6..01e8e0d 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,6 +1,6 @@ Name: scap-security-guide Version: 0.1.44 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause URL: https://github.com/ComplianceAsCode/content/ @@ -61,6 +61,9 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Fri Jul 26 2019 Fedora Release Engineering - 0.1.44-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Mon May 06 2019 Watson Yuuma Sato - 0.1.44-1 - Update to latest upstream SCAP-Security-Guide-0.1.44 release: https://github.com/ComplianceAsCode/content/releases/tag/v0.1.44 From 9b2b46f521b5769cffff68a9b3a5aeac66c0c114 Mon Sep 17 00:00:00 2001 From: Watson Sato Date: Mon, 29 Jul 2019 12:27:29 +0200 Subject: [PATCH 02/76] scap-security-guide-0.1.45 --- .gitignore | 1 + scap-security-guide.spec | 8 ++++++-- sources | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 085739e..81de40d 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,4 @@ /scap-security-guide-0.1.42.tar.bz2 /scap-security-guide-0.1.43.tar.bz2 /scap-security-guide-0.1.44.tar.bz2 +/scap-security-guide-0.1.45.tar.bz2 diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 01e8e0d..55bddbc 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,6 +1,6 @@ Name: scap-security-guide -Version: 0.1.44 -Release: 2%{?dist} +Version: 0.1.45 +Release: 1%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause URL: https://github.com/ComplianceAsCode/content/ @@ -61,6 +61,10 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog +* Mon Jul 29 2019 Watson Sato - 0.1.45-1 +- Update to latest upstream SCAP-Security-Guide-0.1.45 release: + https://github.com/ComplianceAsCode/content/releases/tag/v0.1.45 + * Fri Jul 26 2019 Fedora Release Engineering - 0.1.44-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 911b317..37897b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scap-security-guide-0.1.44.tar.bz2) = 8e0f8e64f8e94bf41d7971e1898d3cf87eb69eba3bae4a428cb4e969d6c8aab8e229d8ef39a6999c3b2f73ff4ec764cb81845dfafce3b6a6d1f1387697c6e3c2 +SHA512 (scap-security-guide-0.1.45.tar.bz2) = 464e94dd1b5c0c95e3cbc227c7c3e47ba4d0afcdb840a93fe0b38b9515a680fa9454df5a94932296f59e67dc71e7271714eb64715348e8d85b815ffb3603e0de From 0de9f5acb49f199e1356dbc1df57a6afbdc3acf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= Date: Mon, 9 Dec 2019 11:14:30 +0100 Subject: [PATCH 03/76] Update to latest upstream SCAP-Security-Guide-0.1.47 release. Also fixed the XML parsing of remediation functions. --- .gitignore | 1 + scap-security-guide.spec | 11 ++++++++++- sources | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 81de40d..dce4f3d 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,4 @@ /scap-security-guide-0.1.43.tar.bz2 /scap-security-guide-0.1.44.tar.bz2 /scap-security-guide-0.1.45.tar.bz2 +/scap-security-guide-0.1.47.tar.bz2 diff --git a/scap-security-guide.spec b/scap-security-guide.spec index 55bddbc..f09a655 100644 --- a/scap-security-guide.spec +++ b/scap-security-guide.spec @@ -1,5 +1,5 @@ Name: scap-security-guide -Version: 0.1.45 +Version: 0.1.47 Release: 1%{?dist} Summary: Security guidance and baselines in SCAP formats License: BSD-3-Clause @@ -7,6 +7,8 @@ URL: https://github.com/ComplianceAsCode/content/ Source0: https://github.com/ComplianceAsCode/content/releases/download/v%{version}/scap-security-guide-%{version}.tar.bz2 BuildArch: noarch +Patch0: scap-security-guide-0.1.48-xml_parsing.patch + BuildRequires: libxslt, expat, python3, openscap-scanner >= 1.2.5, cmake >= 3.8, python3-jinja2, python3-PyYAML Requires: xml-common, openscap-scanner >= 1.2.5 Obsoletes: openscap-content < 0:0.9.13 @@ -35,6 +37,7 @@ present in %{name} package. %prep %setup -q +%patch0 -p1 mkdir build %build @@ -61,6 +64,12 @@ cd build %doc %{_docdir}/%{name}/tables/*.html %changelog + +* Mon Dec 09 2019 Matěj Týč - 0.1.47-1 +- Update to latest upstream SCAP-Security-Guide-0.1.47 release: + https://github.com/ComplianceAsCode/content/releases/tag/v0.1.47 +- Fixed XML parsing of remediation functions. + * Mon Jul 29 2019 Watson Sato - 0.1.45-1 - Update to latest upstream SCAP-Security-Guide-0.1.45 release: https://github.com/ComplianceAsCode/content/releases/tag/v0.1.45 diff --git a/sources b/sources index 37897b3..807d232 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (scap-security-guide-0.1.45.tar.bz2) = 464e94dd1b5c0c95e3cbc227c7c3e47ba4d0afcdb840a93fe0b38b9515a680fa9454df5a94932296f59e67dc71e7271714eb64715348e8d85b815ffb3603e0de +SHA512 (scap-security-guide-0.1.47.tar.bz2) = 6049d871bcdd4fefd078ebe131a87f14e9977f0d9bd1b078ae92f52c31cf70eb39fff95b18e688393e6977846fbb1bed154e549a7d5c68f96f7e306304b23cca From f06ce423ea87f4a58722d8e3bd5676fbcb2a1004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= Date: Mon, 9 Dec 2019 11:24:55 +0100 Subject: [PATCH 04/76] Added an omitted patch. --- scap-security-guide-0.1.48-xml_parsing.patch | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 scap-security-guide-0.1.48-xml_parsing.patch diff --git a/scap-security-guide-0.1.48-xml_parsing.patch b/scap-security-guide-0.1.48-xml_parsing.patch new file mode 100644 index 0000000..501ed56 --- /dev/null +++ b/scap-security-guide-0.1.48-xml_parsing.patch @@ -0,0 +1,31 @@ +From 174293162e5840684d967e36840fc1f9f57c90be Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Mat=C4=9Bj=20T=C3=BD=C4=8D?= +Date: Thu, 5 Dec 2019 15:02:05 +0100 +Subject: [PATCH] Fix XML "parsing" of the remediation functions file. + +A proper fix is not worth the effort, as we aim to kill shared Bash remediation +with Jinja2 macros. +--- + ssg/build_remediations.py | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/ssg/build_remediations.py b/ssg/build_remediations.py +index 7da807bd68..13e90f7327 100644 +--- a/ssg/build_remediations.py ++++ b/ssg/build_remediations.py +@@ -56,11 +56,11 @@ def get_available_functions(build_dir): + remediation_functions = [] + with codecs.open(xmlfilepath, "r", encoding="utf-8") as xmlfile: + filestring = xmlfile.read() +- # This regex looks implementation dependent but we can rely on +- # ElementTree sorting XML attrs alphabetically. Hidden is guaranteed +- # to be the first attr and ID is guaranteed to be second. ++ # This regex looks implementation dependent but we can rely on the element attributes ++ # being present on one line. ++ # We can't rely on ElementTree sorting XML attrs in any way since Python 3.7. + remediation_functions = re.findall( +- r'