summaryrefslogtreecommitdiffstats
path: root/src/runner/runc/init.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-06-21 23:39:32 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-06-21 23:39:32 +0200
commitbf8c179963aabdbb2b03c6af58cd8249f2820e09 (patch)
treea6e4896b9fc6cf381efbb218229fa52c0fbad9b7 /src/runner/runc/init.rs
parent5de93d2d034aa5de37704555cd08f4c3c9285f85 (diff)
downloadrebel-bf8c179963aabdbb2b03c6af58cd8249f2820e09.tar
rebel-bf8c179963aabdbb2b03c6af58cd8249f2820e09.zip
Use input hash for temporary task output filename
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(())
}