Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 931115 - sys-libs/pam: wire up logind support for lastlog replacement, giving y2038 support
Summary: sys-libs/pam: wire up logind support for lastlog replacement, giving y2038 su...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: time64-migration
  Show dependency tree
 
Reported: 2024-05-03 08:05 UTC by Sam James
Modified: 2024-05-06 09:25 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-03 08:05:49 UTC
See https://microos.opensuse.org/blog/2023-09-28-replace-utmp-with-logind/ and so on.

>=pam-1.5.1 has --{enable,disable}-logind for its lastlog module.

We currently pass --disable-logind as it doesn't have elogind support yet.
Comment 1 Larry the Git Cow gentoo-dev 2024-05-03 08:21:54 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e05f732a617ecfe7a5e875ebb044074f58b386

commit c8e05f732a617ecfe7a5e875ebb044074f58b386
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-05-03 08:12:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-03 08:12:53 +0000

    sys-libs/pam: add bug ref for elogind TODO
    
    Bug: https://bugs.gentoo.org/931115
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-libs/pam/pam-1.5.3-r1.ebuild | 2 +-
 sys-libs/pam/pam-1.5.3.ebuild    | 2 +-
 sys-libs/pam/pam-1.6.1.ebuild    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-05-03 08:28:50 UTC
I was wrong at first: lastlog is deprecated, and replaced by a logind-backed module.

We currently enable lastlog temporarily until we get elogind support sorted.

Quoting 1.5.3 release notes:
"""
Deprecated pam_lastlog: this module is no longer built by default because
it uses utmp, wtmp, btmp and lastlog, but none of them are Y2038 safe,
even on 64bit architectures.
pam_lastlog will be removed in one of the next releases, consider using
pam_lastlog2 (from https://github.com/thkukuk/lastlog2) and/or
pam_wtmpdb (from https://github.com/thkukuk/wtmpdb) instead.
"""