-
Notifications
You must be signed in to change notification settings - Fork 671
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 grub2_systemd_debug-shell_argument_absent #9100
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. I a few suggestions for you to take a look at.
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
Make sure that debug-shell service is not enabled with the following | ||
command: | ||
<pre>grep systemd\.debug-shell=1 /boot/grub2/grubenv /etc/default/grub</pre> | ||
If the command returns a line, it means that debug-shell service is being enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be useful in the STIG this should line be in the OCIL clause.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't get your suggestion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe he is trying to suggest that the line 36 should be something like:
ocil_clause: the command returns a line
or something
which will translate into this in the RHEL9 STIG spreadsheet for example:
If the command returns a line, then this is a finding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. This line is duplicative of the OCIL clause.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And how does the the ocil_clause
and RHEL9 STIG spreadsheet stack with the ocil question Is it the case that ...
?
Is it better if the ocil question is Is it the case that the command returns a line?
;
rather than Is it the case that debug-shell service is enabled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the OCIL text ever used without the clause? If it's not I think we can go with We have been moving forwards with things like "Is it the case that the command returns a line" to help with the STIG.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I don't think it it is used anywhere else.
I think I have adjusted the line as you wanted
linux_os/guide/system/bootloader-grub2/grub2_systemd_debug-shell_argument_absent/rule.yml
Outdated
Show resolved
Hide resolved
eaf56c5
to
fcfcf1d
Compare
3f9fccf
to
a5ab6f5
Compare
Create rule that ensure that systemd.debug-shell=1 is not defined for the kernel command line.
Create rule that ensures systemd.debug-shell=1 is not defined for the kernel command line in zIPL.
a5ab6f5
to
2af504b
Compare
Code Climate has analyzed commit 2af504b 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 42.7% (0.0% change). View more on Code Climate. |
@yuumasato: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions 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/test-infra repository. I understand the commands that are listed here. |
The failures in Automatus are due to inability to test grub2 rules in containers. |
The Ansible lint issues are fixed in #9123 |
Tests pass locally. |
Description:
systemd.debug-shell=1
is not defined for the kernel command line.Rationale: