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

RHEL-09-232045: align with STIG #11890

Conversation

vojtapolasek
Copy link
Collaborator

Description:

  • change the variable var_user_initialization_files_regex to all_dotfiles for RHEL 9 stig and stig_gui profile

Rationale:

  • better alignment with official STIG

Review Hints:

  1. ensure that your testing environment has at least one user with id > 999 and existing home directory (see file_permission_user_init_files_root is misaligned with RHEL 9 STIG #11778 for explanation)
  2. oscap xccdf eval --remediate --profile stig --rule xccdf_org.ssgproject.content_rule_file_permission_user_init_files_root ssg-rhel9-ds.xml
  3. oscap xccdf eval --profile '(all)' --rule xccdf_mil.disa.stig_rule_SV-257889r925654_rule disa-stig-rhel9-v1r1-xccdf-scap.xml

@vojtapolasek vojtapolasek added RHEL9 Red Hat Enterprise Linux 9 product related. Update Profile Issues or pull requests related to Profiles updates. STIG STIG Benchmark related. labels Apr 25, 2024
@vojtapolasek vojtapolasek added this to the 0.1.73 milestone Apr 25, 2024
Copy link

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

Fedora Environment
Open in Gitpod

Oracle Linux 8 Environment
Open in Gitpod

Copy link

github-actions bot commented Apr 25, 2024

🤖 A k8s content image for this PR is available at:
ghcr.io/complianceascode/k8scontent:11890
This image was built from commit: 07e2dc3

Click here to see how to deploy it

If you alread have Compliance Operator deployed:
utils/build_ds_container.py -i ghcr.io/complianceascode/k8scontent:11890

Otherwise deploy the content and operator together by checking out ComplianceAsCode/compliance-operator and:
CONTENT_IMAGE=ghcr.io/complianceascode/k8scontent:11890 make deploy-local

@vojtapolasek vojtapolasek force-pushed the fix_user_init_filesvariable_rhel9_stig branch from 0c623cd to 07e2dc3 Compare April 25, 2024 14:12
Copy link

codeclimate bot commented Apr 25, 2024

Code Climate has analyzed commit 07e2dc3 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 59.2% (0.0% change).

View more on Code Climate.

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.

LGTM.

@Mab879 Mab879 merged commit de100b1 into ComplianceAsCode:master Apr 25, 2024
113 checks passed
marcusburghardt added a commit to marcusburghardt/contest that referenced this pull request Apr 26, 2024
comps pushed a commit to RHSecurityCompliance/contest that referenced this pull request Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RHEL9 Red Hat Enterprise Linux 9 product related. STIG STIG Benchmark related. Update Profile Issues or pull requests related to Profiles updates.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants