summaryrefslogtreecommitdiffstats
path: root/src/runner/runc/init.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/runner/runc/init.rs')
-rw-r--r--src/runner/runc/init.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runner/runc/init.rs b/src/runner/runc/init.rs
index f686e3e..f68de47 100644
--- a/src/runner/runc/init.rs
+++ b/src/runner/runc/init.rs
@@ -52,7 +52,9 @@ impl From<Error> for io::Error {
}
pub fn runc_preinit() -> Result<(), Error> {
- DirBuilder::new().recursive(true).create("build/state")?;
+ DirBuilder::new()
+ .recursive(true)
+ .create("build/state/tmp")?;
sched::unshare(CloneFlags::CLONE_NEWUSER | CloneFlags::CLONE_NEWNS).to_io_result()?;
Ok(())
}