Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysctl_net_ipv4_conf_all_forwarding fails on stig_gui using Ansible remediation #13129

Open
comps opened this issue Mar 1, 2025 · 0 comments
Labels
productization-issue Issue found in upstream stabilization process. RHEL Red Hat Enterprise Linux product related. RHEL8 Red Hat Enterprise Linux 8 product related.

Comments

@comps
Copy link
Collaborator

comps commented Mar 1, 2025

Description of problem:

/hardening/ansible/with-gui/stig_gui/sysctl_net_ipv4_conf_all_forwarding

seems to reliably fail on RHEL-8 when using "Server with GUI" package set and Ansible remediation.

From the ARF XML, it seems that the issue is oscap finding oval:ssg-object_sysctl_net_ipv4_conf_all_forwarding_runtime:obj:1 with a value of 1 (as if forwarding was enabled). Manual oscap invocation on the system returned pass, so this may be related to some system startup race condition, or some late sysctl evaluation.

Doing systemd-analyze, systemd-sysctl.service runs for ~100ms very early during boot, so that's not the issue.

I was unable to quickly find out what causes the fail, but it is weird that it doesn't happen elsewhere (or with Bash remediation on the same system). Note that the test does a reboot between any remediation and scanning.

Honestly, the rule IMHO doesn't make much sense overall (when checking runtime interface conf directory) - the values will change during system runtime depending on which interfaces appear/disappear, the only reliable value is default, not all or eth0 or any of the interface names.

SCAP Security Guide Version:

master @ 6d67ad5

Operating System Version:

RHEL-8

Steps to Reproduce:

  1. Run as --rhel 8.10 --arch x86_64 --test /hardening/ansible/with-gui/stig_gui

Additional Information/Debugging Steps:

@comps comps added productization-issue Issue found in upstream stabilization process. RHEL Red Hat Enterprise Linux product related. RHEL8 Red Hat Enterprise Linux 8 product related. labels Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
productization-issue Issue found in upstream stabilization process. RHEL Red Hat Enterprise Linux product related. RHEL8 Red Hat Enterprise Linux 8 product related.
Projects
None yet
Development

No branches or pull requests

1 participant