Add arg_minimal_value variable to grub2_bootloader_argument template#14626
Draft
macko1 wants to merge 1 commit intoComplianceAsCode:masterfrom
Draft
Add arg_minimal_value variable to grub2_bootloader_argument template#14626macko1 wants to merge 1 commit intoComplianceAsCode:masterfrom
macko1 wants to merge 1 commit intoComplianceAsCode:masterfrom
Conversation
|
Skipping CI for Draft Pull Request. |
|
This datastream diff is auto generated by the check Click here to see the full diffOVAL for rule 'xccdf_org.ssgproject.content_rule_grub2_audit_backlog_limit_argument' differs.
--- oval:ssg-grub2_audit_backlog_limit_argument:def:1
+++ oval:ssg-grub2_audit_backlog_limit_argument:def:1
@@ -1,11 +1,11 @@
criteria OR
criteria AND
-criterion oval:ssg-test_grub2_audit_backlog_limit_entries_expanded_or_referenced:tst:1
criteria OR
criterion oval:ssg-test_grub2_audit_backlog_limit_at_least_one_entry_referenced:tst:1
criteria OR
criterion oval:ssg-test_grub2_audit_backlog_limit_argument_grub_env:tst:1
criterion oval:ssg-test_grub2_audit_backlog_limit_argument_grub_env_uefi:tst:1
+criterion oval:ssg-test_grub2_audit_backlog_limit_entries_minimal_value:tst:1
criteria OR
criteria OR
criterion oval:ssg-test_grub2_audit_backlog_limit_argument:tst:1
ansible remediation for rule 'xccdf_org.ssgproject.content_rule_grub2_audit_backlog_limit_argument' differs.
--- xccdf_org.ssgproject.content_rule_grub2_audit_backlog_limit_argument
+++ xccdf_org.ssgproject.content_rule_grub2_audit_backlog_limit_argument
@@ -67,9 +67,9 @@
when:
- '"kernel-core" in ansible_facts.packages'
- '"grub2-common" in ansible_facts.packages'
- - (grubby_info.stdout is not search('audit_backlog_limit=' ~ var_audit_backlog_limit))
- or ((etc_default_grub['content'] | b64decode) is not search('audit_backlog_limit='
- ~ var_audit_backlog_limit))
+ - (grubby_info.stdout is not search('audit_backlog_limit={{ var_audit_backlog_limit
+ }}')) or ((etc_default_grub['content'] | b64decode) is not search('audit_backlog_limit={{
+ var_audit_backlog_limit }}'))
tags:
- CCE-80943-4
- DISA-STIG-RHEL-08-030602 |
|
Change in Ansible Please consider using more suitable Ansible module than |
5d68582 to
117ce41
Compare
Collaborator
|
Hello @macko1 and thank you.
|
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.
Fixes #13923
Implementation
arg_minimal_valueshared/templates/grub2_bootloader_argument/2a. update
template.pyarg_minimal_value2b. update
oval.templatearg_valueis tested by regex for exact string match,arg_minimal_valuetests integer >= comparison2c. update
bash.template,ansible.template,kickstart.template,blueprint.templatearg_minimal_valueto the selection for settingARG_NAME_VALUElinux_os/guide/auditing/grub2_audit_backlog_limit_argument/rule.ymlHTT
./build_product rhel9gutbbyorgrub2-commonsoautomatuswill fail