Changeset 7436c28


Ignore:
Timestamp:
02/04/2024 02:56:04 PM (3 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
Children:
1541b7c
Parents:
8cf42d4
Message:

If we need to create the link target of /dev/shm, make its mode 1777

To match the behavior of a tmpfs mount. Otherwise non-root user (for
e.g. the tester user) will get errors using Glibc shm functions.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter07/kernfs.xml

    r8cf42d4 r7436c28  
    101101      <filename class="directory">/run/shm</filename>.
    102102      The /run tmpfs was mounted above so in this case only a
    103       directory needs to be created.</para>
     103      directory needs to be created with a correct mode.</para>
    104104
    105105      <para>In other host systems <filename>/dev/shm</filename> is a mount point
     
    109109
    110110<screen><userinput>if [ -h $LFS/dev/shm ]; then
    111   mkdir -pv $LFS$(realpath /dev/shm)
     111  install -v -d -m 1777 $LFS$(realpath /dev/shm)
    112112else
    113113  mount -vt tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
  • chapter11/afterlfs.xml

    r8cf42d4 r7436c28  
    131131mounttype run     tmpfs  run
    132132if [ -h $LFS/dev/shm ]; then
    133   mkdir -pv $LFS$(realpath /dev/shm)
     133  install -v -d -m 1777 $LFS$(realpath /dev/shm)
    134134else
    135135  mounttype dev/shm tmpfs tmpfs -o nosuid,nodev
Note: See TracChangeset for help on using the changeset viewer.