createfiles: Add Y2038 info about the traditional {b,u,w}tmp and lastlog files

And utmp does not exist on systemd-based LFS.
This commit is contained in:
Xi Ruoyao 2023-09-30 16:11:57 +08:00
parent 3cd2eae9eb
commit 6e11fe2728
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -215,8 +215,23 @@ chmod -v 600 /var/log/btmp</userinput></screen>
failed login attempts. The <filename>/var/log/btmp</filename> file records
the bad login attempts.</para>
<note><para>The <filename>/run/utmp</filename> file records the users that
are currently logged in. This file is created dynamically in the boot
scripts.</para></note>
<!-- systemd no longer creates this -->
<note revision='sysv'><para>The <filename>/run/utmp</filename> file
records the users that are currently logged in. This file is created
dynamically in the boot scripts.</para></note>
<!-- AFAIK they are not vital for system function, users requiring such
info should rely on systemd-logind or elogind or some custom PAM
module. Maybe we can stop to create them at all. -->
<note>
<para>
The <phrase revision='sysv'><filename>utmp</filename>,
</phrase><filename>wtmp</filename>, <filename>btmp</filename>, and
<filename>lastlog</filename> files use 32-bit integers for timestamp
and they'll be fundamentally broken after year 2038. Many packages
have stopped using them and other packages are going to stop using
them. Do not rely on the contents of them for anything.
</para>
</note>
</sect1>