sandbox_rs/execution/mod.rs
1//! Execution layer: Process management and initialization
2//!
3//! This module handles process execution within sandboxes,
4//! including namespace cloning, initialization, and lifecycle management.
5//!
6//! # Features
7//!
8//! - **Process execution**: Clone with namespace isolation
9//! - **Init process**: Zombie reaping and signal handling
10//! - **Chroot support**: Filesystem root isolation
11//! - **Credential switching**: UID/GID management
12//!
13//! # Examples
14//!
15//! ```ignore
16//! use sandbox_rs::execution::ProcessConfig;
17//!
18//! let config = ProcessConfig {
19//! program: "/bin/bash".to_string(),
20//! args: vec![],
21//! ..Default::default()
22//! };
23//! ```
24
25pub mod init;
26pub mod process;
27pub mod stream;
28pub use init::SandboxInit;
29pub use process::{ProcessConfig, ProcessExecutor, ProcessResult};
30pub use stream::{ProcessStream, StreamChunk};
31
32#[cfg(test)]
33mod tests;