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

Automatus logind_session_timeout/not_configured.fail fails on RHEL-10 #12876

Closed
comps opened this issue Jan 22, 2025 · 0 comments · Fixed by #12884
Closed

Automatus logind_session_timeout/not_configured.fail fails on RHEL-10 #12876

comps opened this issue Jan 22, 2025 · 0 comments · Fixed by #12884
Assignees
Labels
productization-issue Issue found in upstream stabilization process. RHEL10 Red Hat Enterprise Linux 10 product related.

Comments

@comps
Copy link
Collaborator

comps commented Jan 22, 2025

Description of problem:

The test output hints at the problem:

##### logind_session_timeout / not_configured.fail.sh #####
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentityFile=/var/lib/libvirt/images/contest.sshkey [email protected] cd /root/ssgts/logind_session_timeout; SHARED=/root/ssgts/shared bash -x not_configured.fail.sh
STDERR: Warning: Permanently added '192.168.120.180' (ED25519) to the list of known hosts.
+ sed -i '/^.*StopIdleSessionSec.*$/d' /etc/systemd/logind.conf
sed: can't read /etc/systemd/logind.conf: No such file or directory
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentityFile=/var/lib/libvirt/images/contest.sshkey [email protected] cd /root/ssgts/logind_session_timeout; SHARED=/root/ssgts/shared bash -x not_configured.fail.sh

It seems that this test was never updated to deal with empty or non-existent /etc/systemd, which is the default now on RHEL-10.

SCAP Security Guide Version:

master @ 1424df5

Operating System Version:

RHEL-10

Steps to Reproduce:

  1. Run automatus tests for logind_session_timeout
@comps comps added productization-issue Issue found in upstream stabilization process. RHEL10 Red Hat Enterprise Linux 10 product related. labels Jan 22, 2025
@Mab879 Mab879 self-assigned this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
productization-issue Issue found in upstream stabilization process. RHEL10 Red Hat Enterprise Linux 10 product related.
Projects
None yet
2 participants