|
|
9be3b2 |
From 994b50e9a47e222c2a27fde231cbf3e2f6f77aed Mon Sep 17 00:00:00 2001
|
|
|
9be3b2 |
From: Matthew Burket <mburket@redhat.com>
|
|
|
9be3b2 |
Date: Fri, 6 Aug 2021 15:26:28 -0500
|
|
|
9be3b2 |
Subject: [PATCH] Select sysctl_net_core_bpf_jit_harden for RHEL-08-040286
|
|
|
9be3b2 |
|
|
|
9be3b2 |
---
|
|
|
9be3b2 |
.../restrictions/sysctl_net_core_bpf_jit_harden/rule.yml | 3 +++
|
|
|
9be3b2 |
products/rhel8/profiles/stig.profile | 3 +++
|
|
|
9be3b2 |
tests/data/profile_stability/rhel8/stig.profile | 1 +
|
|
|
9be3b2 |
tests/data/profile_stability/rhel8/stig_gui.profile | 1 +
|
|
|
9be3b2 |
4 files changed, 8 insertions(+)
|
|
|
9be3b2 |
|
|
|
9be3b2 |
diff --git a/linux_os/guide/system/permissions/restrictions/sysctl_net_core_bpf_jit_harden/rule.yml b/linux_os/guide/system/permissions/restrictions/sysctl_net_core_bpf_jit_harden/rule.yml
|
|
|
9be3b2 |
index 9a1096cc72..31b7183b87 100644
|
|
|
9be3b2 |
--- a/linux_os/guide/system/permissions/restrictions/sysctl_net_core_bpf_jit_harden/rule.yml
|
|
|
9be3b2 |
+++ b/linux_os/guide/system/permissions/restrictions/sysctl_net_core_bpf_jit_harden/rule.yml
|
|
|
9be3b2 |
@@ -19,8 +19,11 @@ identifiers:
|
|
|
9be3b2 |
cce@rhel9: CCE-83966-2
|
|
|
9be3b2 |
|
|
|
9be3b2 |
references:
|
|
|
9be3b2 |
+ disa: CCI-000366
|
|
|
9be3b2 |
+ nist: CM-6b
|
|
|
9be3b2 |
ospp: FMT_SMF_EXT.1
|
|
|
9be3b2 |
srg: SRG-OS-000480-GPOS-00227
|
|
|
9be3b2 |
+ stigid@rhel8: RHEL-08-040286
|
|
|
9be3b2 |
|
|
|
9be3b2 |
{{{ complete_ocil_entry_sysctl_option_value(sysctl="net.core.bpf_jit_harden", value="2") }}}
|
|
|
9be3b2 |
|
|
|
9be3b2 |
diff --git a/products/rhel8/profiles/stig.profile b/products/rhel8/profiles/stig.profile
|
|
|
9be3b2 |
index 0a1fdd15ca..a358f61dba 100644
|
|
|
9be3b2 |
--- a/products/rhel8/profiles/stig.profile
|
|
|
9be3b2 |
+++ b/products/rhel8/profiles/stig.profile
|
|
|
9be3b2 |
@@ -1149,6 +1149,9 @@ selections:
|
|
|
9be3b2 |
# RHEL-08-040285
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_rp_filter
|
|
|
9be3b2 |
|
|
|
9be3b2 |
+ # RHEL-08-040286
|
|
|
9be3b2 |
+ - sysctl_net_core_bpf_jit_harden
|
|
|
9be3b2 |
+
|
|
|
9be3b2 |
# RHEL-08-040290
|
|
|
9be3b2 |
# /etc/postfix/main.cf does not exist on default installation resulting in error during remediation
|
|
|
9be3b2 |
# there needs to be a new platform check to identify when postfix is installed or not
|
|
|
9be3b2 |
diff --git a/tests/data/profile_stability/rhel8/stig.profile b/tests/data/profile_stability/rhel8/stig.profile
|
|
|
9be3b2 |
index d7e2f71376..7d54a7505f 100644
|
|
|
9be3b2 |
--- a/tests/data/profile_stability/rhel8/stig.profile
|
|
|
9be3b2 |
+++ b/tests/data/profile_stability/rhel8/stig.profile
|
|
|
9be3b2 |
@@ -359,6 +359,7 @@ selections:
|
|
|
9be3b2 |
- sysctl_kernel_randomize_va_space
|
|
|
9be3b2 |
- sysctl_kernel_unprivileged_bpf_disabled
|
|
|
9be3b2 |
- sysctl_kernel_yama_ptrace_scope
|
|
|
9be3b2 |
+- sysctl_net_core_bpf_jit_harden
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_accept_redirects
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_accept_source_route
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_rp_filter
|
|
|
9be3b2 |
diff --git a/tests/data/profile_stability/rhel8/stig_gui.profile b/tests/data/profile_stability/rhel8/stig_gui.profile
|
|
|
9be3b2 |
index 7c95e31545..97291230e7 100644
|
|
|
9be3b2 |
--- a/tests/data/profile_stability/rhel8/stig_gui.profile
|
|
|
9be3b2 |
+++ b/tests/data/profile_stability/rhel8/stig_gui.profile
|
|
|
9be3b2 |
@@ -370,6 +370,7 @@ selections:
|
|
|
9be3b2 |
- sysctl_kernel_randomize_va_space
|
|
|
9be3b2 |
- sysctl_kernel_unprivileged_bpf_disabled
|
|
|
9be3b2 |
- sysctl_kernel_yama_ptrace_scope
|
|
|
9be3b2 |
+- sysctl_net_core_bpf_jit_harden
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_accept_redirects
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_accept_source_route
|
|
|
9be3b2 |
- sysctl_net_ipv4_conf_all_rp_filter
|