Create RHEL 10 STIG control file#14826
Merged
Merged
Conversation
Addressing:
```
jcerny@fedora:~/work/git/scap-security-guide (rhel10_stig_manual)$ utils/build_stig_control.py -o products/rhel10/controls/stig_rhel10.yml -p rhel10 -m shared/references/disa-stig-rhel10-v1r1-xccdf-manual.xml -g controls/srg_gpos.yml
Traceback (most recent call last):
File "/home/jcerny/work/git/scap-security-guide/utils/build_stig_control.py", line 232, in <module>
main()
~~~~^^
File "/home/jcerny/work/git/scap-security-guide/utils/build_stig_control.py", line 204, in main
controls = get_controls(known_rules, ns, root, srg_controls)
File "/home/jcerny/work/git/scap-security-guide/utils/build_stig_control.py", line 158, in get_controls
control['rules'] = get_rules_for_control(stig_id, known_rules, srgs, srg_controls)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/jcerny/work/git/scap-security-guide/utils/build_stig_control.py", line 139, in get_rules_for_control
rule_set.update(srg_controls.get_control(srg).rules)
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^
File "/home/jcerny/work/git/scap-security-guide/ssg/controls.py", line 688, in get_control
raise ValueError(msg) from None
ValueError: SRG-OS-000142-GPOS-00072 not found in policy srg_gpos
```
Generated initial version of RHEL 10 STIG control file using `build_stig_control.py` based on data from DISA manual XCCDF (`shared/references/disa-stig-rhel10-v1r1-xccdf-manual.xml`) and SRG GPOS control files (`controls/srg_gpos.yml`).
Reviewed STIG requirements and performed initial mapping of rules for each requirement in the control file.
Mab879
requested changes
Jun 25, 2026
Mab879
left a comment
Member
There was a problem hiding this comment.
Please make sure that yamllint passes.
|
@jan-cerny: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Mab879
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
stig_rhel10based on official RHEL 10 DISA STIG V1R1.srg_gposcontrols in the RHEL 10stigandstig_guiprofiles.Rationale:
Transition from a vendor STIG profile to a profile aligned with offical DISA STIG in RHEL 10.
Review Hints:
Check the profile stability data changes.
Added rules
Removed rules