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

[Epic]: fix: Do not restart logind unless absolutely necessary [rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • [Epic]: fix: Do not restart logind unless absolutely necessary [rhel-10]
    • Low
    • rhel-system-roles
    • None
    • Dev ack
    • False
    • False
    • Hide

      None

      Show
      None
    • Yes
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • None

      This is a clone of issue RHEL-84910 to use for version rhel-10.1

      Original description:
      Cause: When disabling linger for non-root users, we did not wait long
      enough for the user state to be "closing". Then we restart
      systemd-logind to force linger to be cancelled.

      Consequence: On some systems, this starts a timer which will kill
      the session for root, causing the sshd session to be terminated,
      and the Ansible play to fail with `UNREACHABLE`.

      Fix: Wait much longer for the user linger to be cancelled, and only
      restart logind if absolutely necessary.

      Result: The role does not fail with `UNREACHABLE` errors when
      removing resources.

      Signed-off-by: Rich Megginson <rmeggins@redhat.com>

              rmeggins@redhat.com Richard Megginson
              rmeggins@redhat.com Richard Megginson
              Richard Megginson Richard Megginson
              David Jez David Jez
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: