diff options
author | Thorsten Kukuk <kukuk@suse.com> | 2023-02-14 14:57:40 +0100 |
---|---|---|
committer | Thorsten Kukuk <5908016+thkukuk@users.noreply.github.com> | 2023-02-14 22:09:13 +0100 |
commit | 244b46908df930626535c0cd7c2867407fe8714a (patch) | |
tree | 246472bae38ec8a027c40b0eff4b95006304f532 /ci | |
parent | a21920f8a51951d8dea69fe8720ef9437eb49830 (diff) | |
download | pam-244b46908df930626535c0cd7c2867407fe8714a.tar.gz pam-244b46908df930626535c0cd7c2867407fe8714a.tar.bz2 pam-244b46908df930626535c0cd7c2867407fe8714a.zip |
libpam: use getlogin() from libc and not utmp
utmp uses 32bit time_t for compatibility with 32bit userland on some
64bit systems and is thus not Y2038 safe. Use getlogin() from libc
which avoids using utmp and is more safe than the old utmp-based
implementation by using /proc/self/loginuid.
* libpam/pam_modutil_getlogin.c: Use getlogin() instead of parsing utmp
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions