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 rules for SLES-12-010060 #6806

Merged
merged 3 commits into from Apr 14, 2021

Conversation

brett060102
Copy link
Contributor

  • SLES-12-010060 'Enable GNOME3 Screensaver Lock After Idle Period'

Description:

  • Add rules for SLES-12-010060
  • required slight changes to ansible/shared.yml to accommodate what is in SLES-12-010060 from DISA

Rationale:

- SLES-12-010060 'Enable GNOME3 Screensaver Lock After Idle Period'
@openshift-ci-robot openshift-ci-robot added the needs-ok-to-test Used by openshift-ci bot. label Apr 7, 2021
@openshift-ci-robot
Copy link
Collaborator

Hi @brett060102. Thanks for your PR.

I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@openscap-ci
Copy link
Collaborator

openscap-ci commented Apr 7, 2021

Changes identified:
Rules:
 dconf_gnome_screensaver_lock_enabled
Profiles:
 stig on sle12

Show details

Rule dconf_gnome_screensaver_lock_enabled:
 Ansible remediation changed.
Profile stig on sle12:
 Rule dconf_gnome_screensaver_lock_enabled added to stig profile.

Recommended tests to execute:
 build_product sle12
 tests/test_suite.py profile --libvirt qemu:///system test-suite-vm --datastream build/ssg-sle12-ds.xml stig
 build_product rhel8
 tests/test_suite.py rule --libvirt qemu:///system test-suite-vm --remediate-using ansible --datastream build/ssg-rhel8-ds.xml dconf_gnome_screensaver_lock_enabled

@vojtapolasek vojtapolasek self-assigned this Apr 8, 2021
Copy link
Collaborator

@vojtapolasek vojtapolasek left a comment

Choose a reason for hiding this comment

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

Nice work, please see comments. I looked into this STIG, is that the right source of information?
https://www.stigviewer.com/stig/sles_12/2020-12-04/finding/V-217107

# reboot = false
# strategy = unknown
# complexity = low
# disruption = medium

{{% if product in ["sle12", "sle15"] %}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why using Jinja macro here and when: clause in other cases specific for sle below?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have changed to use when instead.

@@ -1,6 +1,6 @@
documentation_complete: true

prodtype: fedora,ol7,ol8,rhel7,rhel8
prodtype: fedora,ol7,ol8,rhel7,rhel8,sle12
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noticed that you add only sle12 here but ansible modifications and the if clause in ocil is mentioning also sle15. Is that intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

At this point we don't have a sle-15 stig for, this item, but in case one drops we did not want to mess with turning if = sle12 to if in [sle12,sle15], we had too many places where we needed to do that because we just didn't think far enough ahead when we did sle-12.


ocil_clause: 'screensaver locking is not enabled and/or has not been set or configured correctly'

ocil: |-
To check the status of the idle screen lock activation, run the following command:
{{% if product in ['sle12','sle15'] %}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please add this product specific if clause also to the description? The description is shown in the HTML guide and report. The ocil is not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will do.

@brett060102
Copy link
Contributor Author

@vojtapolasek does this one look OK now?

@vojtapolasek
Copy link
Collaborator

Thank you for changes, it looks good now.

@vojtapolasek vojtapolasek merged commit 55cc3d4 into ComplianceAsCode:master Apr 14, 2021
@brett060102
Copy link
Contributor Author

brett060102 commented Apr 14, 2021 via email

@yuumasato yuumasato added this to the 0.1.56 milestone Apr 19, 2021
@brett060102 brett060102 deleted the SLES-12-010060 branch June 28, 2023 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ok-to-test Used by openshift-ci bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants