mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
pid1: port unit namespacing to new /run/systemd/mount-rootfs dir
This commit is contained in:
parent
3690bfb5b2
commit
be79c23569
@ -2166,10 +2166,11 @@ int setup_namespace(
|
||||
* in the root. The temporary directory prevents any mounts from being potentially obscured
|
||||
* my other mounts we already applied. We use the same mount point for all images, which is
|
||||
* safe, since they all live in their own namespaces after all, and hence won't see each
|
||||
* other. */
|
||||
* other. (Note: this directory is also created by PID 1 early on, we create it here for
|
||||
* similar reasons as /run/systemd/ first.) */
|
||||
root = "/run/systemd/mount-rootfs";
|
||||
(void) mkdir_label(root, 0555);
|
||||
|
||||
root = "/run/systemd/unit-root";
|
||||
(void) mkdir_label(root, 0700);
|
||||
require_prefix = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user