Optionally back /tmp and /var/tmp with stable host directories

This commit is contained in:
2026-05-15 01:36:58 +02:00
parent 28e68b0fff
commit 3fb0da0577
13 changed files with 839 additions and 52 deletions
+4
View File
@@ -33,6 +33,7 @@ pub enum SandboxError {
NoCommand,
Seccomp(String),
SeccompUnsupportedArch(String),
PersistentTmpDir(PathBuf, String),
}
impl std::fmt::Display for SandboxError {
@@ -107,6 +108,9 @@ impl std::fmt::Display for SandboxError {
f,
"seccomp filtering is not supported on this architecture: {arch} (use --no-seccomp to disable)"
),
Self::PersistentTmpDir(path, reason) => {
write!(f, "persistent-tmp directory '{}': {reason}", path.display())
}
}
}
}