Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-73389

Active commands get killed by systemd-logind when using StopIdleSessionSec

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.10.z
    • systemd
    • None
    • No
    • Moderate
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • 8
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Trying to implement STIG requirement RHEL-08-020035 for terminating idle sessions.

      What is the impact of this issue to you?

      Any command run by the user that takes longer than StopIdleSessionSec without reading any input is killed. This could be yum update, file copying, etc.

      Please provide the package NVR for which the bug is seen:

      systemd-239-82.el8_10.3

      kernel-4.18.0-553.33.1.el8_10

      How reproducible is this bug?:

      Always.

      Steps to reproduce

      1. Set StopIdleSessionSec=600 in /etc/systemd/logind.conf
      2. Restart systemd-logind with sudo systemctl restart systemd-logind
      3. Run any command that takes longer than the specified duration without reading any input. The command will get killed, regardless of any output it prints. This could be anything like yum update, file copying, etc.
        Example one liner: 
         while true; do date; sleep 1; done
        

      Expected results

      Command finishing and not getting killed while active.

      Actual results

      Command gets killed after the set duration if no input is read, regardless of output and active operation.

              systemd-maint systemd maint mailing list
              ntnx-saher Saher Hajji
              systemd maint mailing list systemd maint mailing list
              Frantisek Sumsal Frantisek Sumsal
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: