Issue
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).