diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-09-30 16:11:57 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-09-30 16:12:56 +0800 |
commit | 6e11fe27286d9202280771ad1a402657e67ee065 (patch) | |
tree | 16189281cd7e2c2503cdc597a3de4486047dc659 | |
parent | 3cd2eae9eb3bc42c89e262c1f83cc9705ac17391 (diff) |
createfiles: Add Y2038 info about the traditional {b,u,w}tmp and lastlog files
And utmp does not exist on systemd-based LFS.
-rw-r--r-- | chapter07/createfiles.xml | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 2b752b944..ec4b0eee2 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -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> |