Initialise the process-wide OCSF sandbox context. Returns `false` if the context was already set; the caller may log and continue. Intended to be called exactly once during sandbox startup.
(ctx: SandboxContext)
| 28 | /// Returns `false` if the context was already set; the caller may log and |
| 29 | /// continue. Intended to be called exactly once during sandbox startup. |
| 30 | pub fn set_ctx(ctx: SandboxContext) -> bool { |
| 31 | OCSF_CTX.set(ctx).is_ok() |
| 32 | } |
| 33 | |
| 34 | /// Return a reference to the process-wide [`SandboxContext`]. |
| 35 | /// |