MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / apply

Function apply

crates/openshell-supervisor-process/src/sandbox/linux/mod.rs:53–57  ·  view source on GitHub ↗

Retained for backward compat; live callers use prepare+enforce.

(policy: &SandboxPolicy, workdir: Option<&str>)

Source from the content-addressed store, hash-verified

51/// New callers should use [`prepare`] + [`enforce`] for correct privilege ordering.
52#[allow(dead_code)] // Retained for backward compat; live callers use prepare+enforce.
53pub fn apply(policy: &SandboxPolicy, workdir: Option<&str>) -> Result<()> {
54 landlock::apply(policy, workdir)?;
55 seccomp::apply(policy)?;
56 Ok(())
57}
58
59/// Probe Landlock availability and emit OCSF logs from the parent process.
60///

Callers 1

enforceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected