]> git.ipfire.org Git - thirdparty/systemd.git/commit
fstab-generator: set mode=0755 with root=tmpfs
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 16 Jun 2025 22:28:57 +0000 (23:28 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Jun 2025 07:13:45 +0000 (16:13 +0900)
commitd3a57a0853de1a4a03b4ae1fbfa8bc59dc01b217
tree1394474eebc7000d6be689c761f7d835e90a228f
parent80edc0ecdda4b6ea93f163ce098111c63f247a98
fstab-generator: set mode=0755 with root=tmpfs

If mode= is not set in rootflags= add mode=0755 when a tmpfs
is used on the rootfs, otherwise it will be group/world writable
as that's the default mode for tmpfs filesystems.

Follow-up for 725ad3b06288b2beeaaf178120010612a30646e4
src/fstab-generator/fstab-generator.c
test/test-fstab-generator/test-16-tmpfs.expected/sysroot.mount