silk.system.sandbox.
Constructs operating-system sandbox requests for declared tool inputs and outputs.
Import as Sandbox with import silk.system.sandbox as Sandbox.
Public declarations: 1.
request#
pub effect fn request(launcher: &Path, program: &Path, readable: &[Path], writable: &[&Path]) -> ProcessRequest
! FileError | OutOfMemoryError ? &mut AllocatorRuns program sandboxed in writable[0], its working directory, through
silkc sandbox-exec (launcher) on Linux, and through sandbox-exec -p <profile> (launcher)
on macOS. It reads the system's programs and libraries, program and readable, writes only
below writable and opens no TCP connection.
Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.