diff --git a/SOURCES/scap-security-guide-0.1.62-fix_loop_variable_path-PR_8462.patch b/SOURCES/scap-security-guide-0.1.62-fix_loop_variable_path-PR_8462.patch new file mode 100644 index 0000000..c7f6c7d --- /dev/null +++ b/SOURCES/scap-security-guide-0.1.62-fix_loop_variable_path-PR_8462.patch @@ -0,0 +1,24 @@ +From 4385fd471749b21fd2e7e5febe7ba273592a0633 Mon Sep 17 00:00:00 2001 +From: Andrew Becker +Date: Wed, 30 Mar 2022 16:58:04 -0400 +Subject: [PATCH] Fix variable path access issue + +Reference the path in the item dictionary, instead of the item dictionary itself +Addresses Issue #8275 +--- + shared/templates/sysctl/ansible.template | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/shared/templates/sysctl/ansible.template b/shared/templates/sysctl/ansible.template +index 3837b313e13..f525cf873f7 100644 +--- a/shared/templates/sysctl/ansible.template ++++ b/shared/templates/sysctl/ansible.template +@@ -13,7 +13,7 @@ + + - name: Comment out any occurrences of {{{ SYSCTLVAR }}} from /etc/sysctl.d/*.conf files + replace: +- path: "{{ item }}" ++ path: "{{ item.path }}" + regexp: '^[\s]*{{{ SYSCTLVAR }}}' + replace: '#{{{ SYSCTLVAR }}}' + loop: "{{ find_sysctl_d.files }}" diff --git a/SOURCES/scap-security-guide-0.1.62-fix_oval_5_10_validation-PR_8782.patch b/SOURCES/scap-security-guide-0.1.62-fix_oval_5_10_validation-PR_8782.patch new file mode 100644 index 0000000..77635b8 --- /dev/null +++ b/SOURCES/scap-security-guide-0.1.62-fix_oval_5_10_validation-PR_8782.patch @@ -0,0 +1,32 @@ +From 2a7e57d7714e9931ec4d43a0d25269258dd4af2a Mon Sep 17 00:00:00 2001 +From: Watson Sato +Date: Tue, 17 May 2022 10:24:26 +0200 +Subject: [PATCH] Do not include symlink_state in 5.10 content + +The symlink_test, object and state were added in OVAL 5.11. These +elements should not be included in OVAL 5.10 content because they break +validation. +--- + shared/templates/sysctl/oval.template | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/shared/templates/sysctl/oval.template b/shared/templates/sysctl/oval.template +index e21b0344cb6..207052664a4 100644 +--- a/shared/templates/sysctl/oval.template ++++ b/shared/templates/sysctl/oval.template +@@ -222,7 +222,6 @@ + + state_symlink_points_outside_usual_dirs_{{{ SYSCTLID }}} + +-{{% endif %}} + +