After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788784 - manager: don't record wtmp entries when user unknown
manager: don't record wtmp entries when user unknown
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-10 16:53 UTC by Ray Strode [halfline]
Modified: 2017-10-10 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
manager: don't record wtmp entries when user unknown (5.39 KB, patch)
2017-10-10 16:53 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2017-10-10 16:53:04 UTC
Right now we end up writing wtmp entries for the login screen
user into /var/log/wtmp, but with a funky username of "(unknown)".

The login screen session shouldn't get a wtmp entry, and we
shouldn't ever add wtmp entries for sessions we don't know the username
for.

This commit fixes that.
Comment 1 Ray Strode [halfline] 2017-10-10 16:53:10 UTC
Created attachment 361255 [details] [review]
manager: don't record wtmp entries when user unknown
Comment 2 Ray Strode [halfline] 2017-10-10 16:57:24 UTC
Attachment 361255 [details] pushed as b5fb83e - manager: don't record wtmp entries when user unknown