Optionally back /tmp and /var/tmp with stable host directories
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user