Changeset 7436c28 for chapter11


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.