Changeset 6e11fe2


Ignore:
Timestamp:
09/30/2023 08:12:56 AM (8 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
Children:
c7cd2c7
Parents:
3cd2eae
git-author:
Xi Ruoyao <xry111@…> (09/30/2023 08:11:57 AM)
git-committer:
Xi Ruoyao <xry111@…> (09/30/2023 08:12:56 AM)
Message:

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

And utmp does not exist on systemd-based LFS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/createfiles.xml

    r3cd2eae r6e11fe2  
    216216  the bad login attempts.</para>
    217217
    218   <note><para>The <filename>/run/utmp</filename> file records the users that
    219   are currently logged in.  This file is created dynamically in the boot
    220   scripts.</para></note>
     218  <!-- systemd no longer creates this -->
     219  <note revision='sysv'><para>The <filename>/run/utmp</filename> file
     220  records the users that are currently logged in.  This file is created
     221  dynamically in the boot scripts.</para></note>
     222
     223  <!-- AFAIK they are not vital for system function, users requiring such
     224       info should rely on systemd-logind or elogind or some custom PAM
     225       module.  Maybe we can stop to create them at all.  -->
     226  <note>
     227    <para>
     228      The <phrase revision='sysv'><filename>utmp</filename>,
     229      </phrase><filename>wtmp</filename>, <filename>btmp</filename>, and
     230      <filename>lastlog</filename> files use 32-bit integers for timestamp
     231      and they'll be fundamentally broken after year 2038.  Many packages
     232      have stopped using them and other packages are going to stop using
     233      them.  Do not rely on the contents of them for anything.
     234    </para>
     235  </note>
    221236
    222237</sect1>
Note: See TracChangeset for help on using the changeset viewer.