summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-07-24 21:17:44 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-07-24 21:17:44 +0200
commitd2d84c13a706af98ab1ba9d2cf7ae8c6b47454b6 (patch)
tree81fc08731eaf1a955e42fd1cd572312a5a0ec403
parent9b4cfb0621efecfe596d9b25da486ccbcfead4d9 (diff)
downloadrebel-d2d84c13a706af98ab1ba9d2cf7ae8c6b47454b6.tar
rebel-d2d84c13a706af98ab1ba9d2cf7ae8c6b47454b6.zip
runc: mount tmpfs to /tmp
-rw-r--r--src/runner/runc/spec.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runner/runc/spec.rs b/src/runner/runc/spec.rs
index 75f8963..6d9b90d 100644
--- a/src/runner/runc/spec.rs
+++ b/src/runner/runc/spec.rs
@@ -49,6 +49,17 @@ pub fn generate_spec(run: &str, env: &HashMap<String, String>) -> runtime::Spec
]
},
{
+ "destination": "/tmp",
+ "type": "tmpfs",
+ "source": "tmp",
+ "options": [
+ "nodev",
+ "nosuid",
+ "mode=1777",
+ "size=65536k"
+ ]
+ },
+ {
"destination": "/proc",
"type": "proc",
"source": "proc"