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

gdm creates dangling wtmp records

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

    • None
    • Watchers
    • None
    • rhel-display-window-mgmt
    • ssg_display
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • ---
    • None
    • 57,005

      Description of problem:
      When a user logs in via gdm, a login record for the gdm seat is added to /var/log/wtmp for which no corresponding logout record ever appears to be written. This results in the appearance of the user remaining logged into the system until the next gdm login.

      Version-Release number of selected component (if applicable):
      gdm-40.0-27.el8.x86_64

      How reproducible:
      Always

      Steps to Reproduce:
      1. Log in via the GDM login screen.
      2. Log out.
      3. List the last logged-in users via the "last" command (e.g. "last -2")

      Actual results:
      testuser :1 :1 Fri Jun 2 10:07 - 10:08 (00:00)
      testuser seat0 login screen Fri Jun 2 10:07 gone - no logout

      Expected results:
      Either a logout record should be reliably written to wtmp (ideally when the session ends), or the "seat0"/"login screen" record (which is largely made redundant by the ":1" entry anyway) should be suppressed entirely, to restore the previous behaviour.

      Additional info:
      The problem did not appear in gdm-1:40.0-24 (8.7); the new behaviour appears to have been introduced by 0002-manager-Fix-btmp-record-accounting.patch, released with 8.8.

      In case it makes a difference, I'm using Xorg (not Wayland).

              rh-ee-joatorre Joan Torres Lopez
              djast_ecf djast@ecf.utoronto.ca (Inactive)
              Joan Torres Lopez Joan Torres Lopez
              Desktop QE Desktop QE
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: