diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-02-06 23:46:28 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-02-06 23:46:28 +0100 |
commit | 63d8f387fd24488c4152ce67b764147b4b98c261 (patch) | |
tree | a3e8b7f3275408458c3e71eb67f8c58678b43e47 /src/runner/runc/init.rs | |
parent | 0a241cdcd34b94429100eae258bdb57500617662 (diff) | |
download | rebel-63d8f387fd24488c4152ce67b764147b4b98c261.tar rebel-63d8f387fd24488c4152ce67b764147b4b98c261.zip |
runc: create mount namespace for each task
Diffstat (limited to 'src/runner/runc/init.rs')
-rw-r--r-- | src/runner/runc/init.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/runner/runc/init.rs b/src/runner/runc/init.rs index 1786719..658b318 100644 --- a/src/runner/runc/init.rs +++ b/src/runner/runc/init.rs @@ -52,24 +52,6 @@ fn prepare_buildtmp() -> io::Result<()> { } DirBuilder::new().create("build/tmp/runc")?; - DirBuilder::new().create("build/tmp/runc/rootfs")?; - - mount::mount::<_, _, str, str>( - Some("build/tmp/rootfs"), - "build/tmp/runc/rootfs", - None, - MsFlags::MS_BIND, - None, - ) - .to_io_result()?; - mount::mount::<str, _, str, str>( - None, - "build/tmp/runc/rootfs", - None, - MsFlags::MS_BIND | MsFlags::MS_REMOUNT | MsFlags::MS_RDONLY, - None, - ) - .to_io_result()?; Ok(()) } |