Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

matusmarhefka
Copy link
Member

Remediation of the rule networkmanager_dns_mode calls systemctl reload which doesn't work in the bootable container build environment and so we use the bash_not_bootc_build macro to not run it there.

Remediation of the rule `networkmanager_dns_mode` calls
`systemctl reload` which doesn't work in the bootable
container build environment and so we use the
`bash_not_bootc_build` macro to not run it there.
@matusmarhefka matusmarhefka added the Image Mode Bootable containers and Image Mode RHEL label Nov 5, 2024
@matusmarhefka matusmarhefka added this to the 0.1.75 milestone Nov 5, 2024
@Mab879 Mab879 self-assigned this Nov 5, 2024
Copy link

github-actions bot commented Nov 5, 2024

Start a new ephemeral environment with changes proposed in this pull request:

ol9 (from CTF) Environment (using Fedora as testing environment)
Open in Gitpod

Fedora Testing Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

github-actions bot commented Nov 5, 2024

This datastream diff is auto generated by the check Compare DS/Generate Diff

Click here to see the full diff
bash remediation for rule 'xccdf_org.ssgproject.content_rule_networkmanager_dns_mode' differs.
--- xccdf_org.ssgproject.content_rule_networkmanager_dns_mode
+++ xccdf_org.ssgproject.content_rule_networkmanager_dns_mode
@@ -20,7 +20,9 @@
     fi
 fi
 
-systemctl reload NetworkManager
+if [[ "$OSCAP_BOOTC_BUILD" != "YES" ]] ; then
+    systemctl reload NetworkManager
+fi
 
 else
     >&2 echo 'Remediation is not applicable, nothing was done'

Copy link

Code Climate has analyzed commit e079930 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 60.9% (0.0% change).

View more on Code Climate.

@Mab879
Copy link
Member

Mab879 commented Nov 5, 2024

Automatus tests pass locally, waving.

@Mab879 Mab879 merged commit 3e42da6 into ComplianceAsCode:master Nov 5, 2024
98 of 105 checks passed
@matusmarhefka matusmarhefka deleted the bootc_networkmanager_dns_mode branch November 6, 2024 09:18
@Mab879 Mab879 added the Update Rule Issues or pull requests related to Rules updates. label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Image Mode Bootable containers and Image Mode RHEL Update Rule Issues or pull requests related to Rules updates.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants