Bug 2210276

Summary: openscap shows IPv6 as enabled even if it is disabled
Product: Red Hat Enterprise Linux 7 Reporter: achadha
Component: scap-security-guideAssignee: Marcus Burghardt <maburgha>
Status: VERIFIED --- QA Contact: Milan Lysonek <mlysonek>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.9CC: ggasparb, jcerny, jjaburek, maburgha, mhaicman, mlysonek, vpolasek, wsato
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: scap-security-guide-0.1.69-1.el7_9 Doc Type: Bug Fix
Doc Text:
.Applicability changes of rules related to IPv6 configuration Compliance rules that are related to IPv6 configuration will now return "notapplicable" result when IPv6 is disabled on the target system. The applicability will be determined based on presence of `ipv6.disable` in the `GRUB_CMDLINE_LINUX` value in the `/etc/default/grub` configuration file. If this option is not present there or set to 0, the rules will be considered applicable and will be evaluated. The following rules are affected by this change: - disabling_ipv6_autoconfig - network_ipv6_default_gateway - network_ipv6_privacy_extensions - network_ipv6_static_address - sysctl_net_ipv6_conf_all_accept_ra - sysctl_net_ipv6_conf_all_accept_ra_defrtr - sysctl_net_ipv6_conf_all_accept_ra_pinfo - sysctl_net_ipv6_conf_all_accept_ra_rtr_pref - sysctl_net_ipv6_conf_all_accept_redirects - sysctl_net_ipv6_conf_all_accept_source_route - sysctl_net_ipv6_conf_all_autoconf - sysctl_net_ipv6_conf_all_forwarding - sysctl_net_ipv6_conf_all_max_addresses - sysctl_net_ipv6_conf_all_router_solicitations - sysctl_net_ipv6_conf_default_accept_ra - sysctl_net_ipv6_conf_default_accept_ra_defrtr - sysctl_net_ipv6_conf_default_accept_ra_pinfo - sysctl_net_ipv6_conf_default_accept_ra_rtr_pref - sysctl_net_ipv6_conf_default_accept_redirects - sysctl_net_ipv6_conf_default_accept_source_route - sysctl_net_ipv6_conf_default_autoconf - sysctl_net_ipv6_conf_default_forwarding - sysctl_net_ipv6_conf_default_max_addresses - sysctl_net_ipv6_conf_default_router_solicitations
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description achadha 2023-05-26 12:19:24 UTC
Description of problem:

Even after disabling IPv6 on the system, running the openscap scan shows that IPv6 is still enabled on the system

Version-Release number of selected component (if applicable):
scap-security-guide

How reproducible:


Steps to Reproduce:
1. Disable IPv6 on system under /etc/default/grub 
    GRUB_CMDLINE_LINUX="ipv6.disable=1"
2. Attach openscap policy to the system
3. Run openscap scan on the system

Actual results:
Openscap reports IPv6 is still enabled

Expected results:
Openscap should not report IPv6 is enabled 

Additional info:

Comment 5 Marcus Burghardt 2023-07-13 06:25:02 UTC
Fix is merged in Upstream: https://github.com/ComplianceAsCode/content/pull/10830