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

Add a script to ensure coredump configuration file exists #12844

Merged

Conversation

ggbecker
Copy link
Member

Description:

  • Add a script to ensure coredump configuration file exists
  • In RHEL10, the /etc/systemd/coredump.conf file does not exist by default and it needs to be created properly with the [Coredump] section in order for the test scenarios to work as expected.

In RHEL10, the /etc/systemd/coredump.conf file does not exist by default
and it needs to be created properly with the [Coredump] section in order
for the test scenarios to work as expected.
@ggbecker ggbecker added bugfix Fixes to reported bugs. RHEL10 Red Hat Enterprise Linux 10 product related. labels Jan 17, 2025
@ggbecker ggbecker added this to the 0.1.76 milestone Jan 17, 2025
Copy link

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

rhel8 (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

codeclimate bot commented Jan 17, 2025

Code Climate has analyzed commit 9cf6dfd 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 61.9% (0.0% change).

View more on Code Climate.

@Mab879 Mab879 self-assigned this Jan 17, 2025
Copy link
Member

@Mab879 Mab879 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ ./automatus.py rule --datastream ../build/ssg-rhel10-ds.xml --libvirt qemu:///system automatus_rhel10 --remediate-using bash coredump_disable_backtraces  
Setting console output to log level INFO
INFO - The base image option has not been specified, choosing libvirt-based test environment.
INFO - Logging into /home/mburket/Developer/ComplianceAsCode/content/tests/logs/rule-custom-2025-01-17-0657/test_suite.log
INFO - xccdf_org.ssgproject.content_rule_coredump_disable_backtraces
INFO - Script etc_systemd_coredump_conf_dne.fail.sh using profile (all) OK
INFO - Script coredumps_processsizemax_0.pass.sh using profile (all) OK
INFO - Script coredumps_processsizemax_default.fail.sh using profile (all) OK
INFO - Script coredumps_processsizemax_nonzero.fail.sh using profile (all) OK

Automatus passes locally, thanks!

@Mab879 Mab879 merged commit fe4e1df into ComplianceAsCode:master Jan 17, 2025
107 of 109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes to reported bugs. RHEL10 Red Hat Enterprise Linux 10 product related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants