Merge pull request #27648 from poettering/common-dissect-dir

pid1: add common root dir inode to mount disk images to in private namespaces
This commit is contained in:
Lennart Poettering
2023-05-16 05:26:48 -07:00
committed by GitHub
15 changed files with 60 additions and 42 deletions
+5
View File
@@ -550,6 +550,11 @@ int mount_setup(bool loaded_policy, bool leave_propagation) {
(void) mkdir_label("/run/systemd", 0755);
(void) mkdir_label("/run/systemd/system", 0755);
/* Make sure there's always a place where sandboxed environments can mount root file systems they are
* about to move into, even when unprivileged, without having to create a temporary one in /tmp/
* (which they then have to keep track of and clean) */
(void) mkdir_label("/run/systemd/mount-rootfs", 0555);
/* Make sure we have a mount point to hide in sandboxes */
(void) mkdir_label("/run/credentials", 0755);