We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9ef7a6f + 884b67f commit b2f3477Copy full SHA for b2f3477
apd/src/mount.rs
@@ -188,6 +188,7 @@ pub fn mount_devpts(dest: impl AsRef<Path>) -> Result<()> {
188
MountFlags::empty(),
189
"newinstance",
190
)?;
191
+ mount_change(dest.as_ref(), MountPropagationFlags::PRIVATE).context("make devpts private")?;
192
Ok(())
193
}
194
#[cfg(not(any(target_os = "linux", target_os = "android")))]
@@ -218,6 +219,7 @@ pub fn mount_tmpfs(dest: impl AsRef<Path>) -> Result<()> {
218
219
"",
220
221
222
+ mount_change(dest.as_ref(), MountPropagationFlags::PRIVATE).context("make tmpfs private")?;
223
let pts_dir = format!("{}/{PTS_NAME}", dest.as_ref().display());
224
if let Err(e) = mount_devpts(pts_dir) {
225
warn!("do devpts mount failed: {}", e);
0 commit comments