summaryrefslogtreecommitdiff
path: root/man/sd-login.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-05-15 11:35:15 +0200
committerLennart Poettering <lennart@poettering.net>2023-05-16 09:24:45 +0200
commit3690bfb5b2279b75840d19a9b2763b00318b05c7 (patch)
treece9c3b55fc3d0a18dcc0945a1d95cbe5d56e38fa /man/sd-login.xml
parenta789f72ed23afeb4324b880c5207d067ff5ff11c (diff)
downloadsystemd-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-login.xml')
0 files changed, 0 insertions, 0 deletions