add new rule logind_session_timeout
Description:
- add rule which configures Logind to terminate idle sessoins
- add OVAL, Bash, Ansible and test scenarios
- the rule uses XCCDF variable
- one change needed to be done to a Bash ini_file macro
Rationale:
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=2122322
Start a new ephemeral environment with changes proposed in this pull request:
rhel8 (from CTF) Environment (using Fedora as testing environment)
This datastream diff is auto generated by the check Compare DS/Generate Diff
Click here to see the full diff
bash remediation for rule 'xccdf_org.ssgproject.content_rule_gnome_gdm_disable_xdmcp' differs.
--- xccdf_org.ssgproject.content_rule_gnome_gdm_disable_xdmcp
+++ xccdf_org.ssgproject.content_rule_gnome_gdm_disable_xdmcp
@@ -5,12 +5,12 @@
# to 'false', if it isn't here, add it, if '[xdmcp]' doesn't exist, add it there
if grep -qzosP '[[:space:]]*\[xdmcp]([^\n\[]*\n+)+?[[:space:]]*Enable' '/etc/gdm/custom.conf'; then
- sed -i 's/Enable[^(\n)]*/Enable=false/' '/etc/gdm/custom.conf'
+ sed -i "s/Enable[^(\n)]*/Enable=false/" '/etc/gdm/custom.conf'
elif grep -qs '[[:space:]]*\[xdmcp]' '/etc/gdm/custom.conf'; then
- sed -i '/[[:space:]]*\[xdmcp]/a Enable=false' '/etc/gdm/custom.conf'
+ sed -i "/[[:space:]]*\[xdmcp]/a Enable=false" '/etc/gdm/custom.conf'
else
if test -d "/etc/gdm"; then
- printf '%s\n' '[xdmcp]' 'Enable=false' >> '/etc/gdm/custom.conf'
+ printf '%s\n' '[xdmcp]' "Enable=false" >> '/etc/gdm/custom.conf'
else
echo "Config file directory '/etc/gdm' doesnt exist, not remediating, assuming non-applicability." >&2
fi
I believe you git tree is a bit messed up. Try rebasing it one more time.
Thanks for noticing that, I rebased.
Looks like something is off on the rebase fa7fcd02fcb8e07d1b8ba713f4c85c9f0b10b8e7 looks odd to me as you are commiting a change made by me.
@vojtapolasek can you try to take a look whether the rebase is correct or can you rebase again?
@vojtapolasek bump
@jan-cerny rebased
@vojtapolasek: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| ci/prow/e2e-aws-ocp4-high | f1c08624d353ccccc7e7a89fca5d760901adabed | link | true | /test e2e-aws-ocp4-high |
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.
Code Climate has analyzed commit f1c08624 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 46.5% (0.0% change).
View more on Code Climate.