mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
core/namespace: drop mount points outside of root even if RootDirectory= is not set
This commit is contained in:
@@ -1276,7 +1276,7 @@ int setup_namespace(
|
||||
if (r < 0)
|
||||
goto finish;
|
||||
|
||||
normalize_mounts(root_directory, mounts, &n_mounts);
|
||||
normalize_mounts(root, mounts, &n_mounts);
|
||||
}
|
||||
|
||||
if (unshare(CLONE_NEWNS) < 0) {
|
||||
@@ -1375,7 +1375,7 @@ int setup_namespace(
|
||||
if (!again)
|
||||
break;
|
||||
|
||||
normalize_mounts(root_directory, mounts, &n_mounts);
|
||||
normalize_mounts(root, mounts, &n_mounts);
|
||||
}
|
||||
|
||||
/* Create a blacklist we can pass to bind_mount_recursive() */
|
||||
|
||||
Reference in New Issue
Block a user