Mark inherited descriptors close-on-exec so none reach the sandbox
This commit is contained in:
@@ -3,6 +3,7 @@ pub mod cli;
|
||||
pub mod config;
|
||||
mod env;
|
||||
mod errors;
|
||||
mod inherited_fds;
|
||||
mod memfd;
|
||||
mod persistent_tmp;
|
||||
mod preflight;
|
||||
@@ -99,6 +100,7 @@ fn resolve_run_user_from_proc() -> Option<String> {
|
||||
}
|
||||
|
||||
pub fn run(config: SandboxConfig) -> Result<ExitStatus, SandboxError> {
|
||||
inherited_fds::keep_out_of_sandbox()?;
|
||||
preflight::check(&config)?;
|
||||
|
||||
let forwarded_signals = ForwardedSignals::detect();
|
||||
|
||||
Reference in New Issue
Block a user