diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-05-15 11:35:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-05-16 09:24:45 +0200 |
commit | 3690bfb5b2279b75840d19a9b2763b00318b05c7 (patch) | |
tree | ce9c3b55fc3d0a18dcc0945a1d95cbe5d56e38fa /man/sd-journal.xml | |
parent | a789f72ed23afeb4324b880c5207d067ff5ff11c (diff) | |
download | systemd-3690bfb5b2279b75840d19a9b2763b00318b05c7.tar.gz |
namespace: introduce a common dir in /run/ that we can use to see new root fs up on
This creates a new dir /run/systemd/mount-rootfs/ early in PID 1 that
thus always exists. It's supposed to be used by any code that creates
its own mount namespace and then sets up a new root dir to switch into.
So far in many cases we used a temporary dir (which needed explicit
clean-up) or a purpose-specific fixed dir.
Let's create a common dir instead, that always exists (as it is created
in PID 1 early on, always).
Besides making things more robust, as manual clean-up of the inode is
not necessary anymore this also opens the door for unprivileged programs
to use the same dir, since it now always exists.
Set the access mode to 555 (instead of the otherwise previously used
0755, 0700 or similar), so that unprivileged programs can access it, but
we make clear it's not supposed to be written directly to, by anyone,
not even root.
Diffstat (limited to 'man/sd-journal.xml')
0 files changed, 0 insertions, 0 deletions