diff options
author | Thorsten Kukuk <kukuk@suse.com> | 2023-02-21 17:00:25 +0100 |
---|---|---|
committer | Thorsten Kukuk <5908016+thkukuk@users.noreply.github.com> | 2023-02-28 07:03:30 +0100 |
commit | 8a3f0810397c992a1155d815b1dd40b0b8fed59d (patch) | |
tree | b886faa6c66a2f1f8a8afecbfa220882bf4580f3 /modules/pam_env | |
parent | 53b5e0d9e4b993cd9b0c3757adc02fae1505e99d (diff) | |
download | pam-8a3f0810397c992a1155d815b1dd40b0b8fed59d.tar.gz pam-8a3f0810397c992a1155d815b1dd40b0b8fed59d.tar.bz2 pam-8a3f0810397c992a1155d815b1dd40b0b8fed59d.zip |
Y2038: use logind instead of utmp
The struct utmp from glibc uses on many 64bit architectures a 32bit
time_t for compatibility with a 32bit userland, which means utmp will
not survive the year 2038 (32bit time_t overflow). Use the data from
logind instead of utmp.
* configure.ac: Add option --enable-logind
* modules/pam_issue/Makefile.am: Add CFLAGS/LIBS for logind support
* modules/pam_issue/pam_issue.c: Use sd_get_sessions instead of utmp
* modules/pam_timestamp/Makefile.am: Add CFLAGS/LIBS for logind support
* modules/pam_timestamp/pam_timestamp.c: query logind for login time
Diffstat (limited to 'modules/pam_env')
0 files changed, 0 insertions, 0 deletions