From d2d84c13a706af98ab1ba9d2cf7ae8c6b47454b6 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 24 Jul 2021 21:17:44 +0200 Subject: runc: mount tmpfs to /tmp --- src/runner/runc/spec.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ -48,6 +48,17 @@ pub fn generate_spec(run: &str, env: &HashMap) -> runtime::Spec "ro" ] }, + { + "destination": "/tmp", + "type": "tmpfs", + "source": "tmp", + "options": [ + "nodev", + "nosuid", + "mode=1777", + "size=65536k" + ] + }, { "destination": "/proc", "type": "proc", -- cgit v1.2.3