Skip to main content
The nono SDK exports several module-level functions for applying sandboxes and querying platform support.

apply

Apply the sandbox with the given capabilities. This function activates OS-level sandboxing using Landlock (Linux) or Seatbelt (macOS).
CapabilitySet
required
The capability set defining what the process can access.
This operation is irreversible. Once applied, the sandbox cannot be weakened, modified, or removed for the lifetime of the process. All child processes inherit the same restrictions.

Behavior

  • Validates all paths in the capability set exist
  • Activates the appropriate OS sandbox mechanism
  • Throws an error if sandboxing fails

Errors

Example


isSupported

Check if sandboxing is supported on the current platform.
boolean
true if sandboxing is available, false otherwise.

Platform Support

Example


supportInfo

Get detailed information about sandbox support on the current platform.
SupportInfoResult
Object containing platform support details.

SupportInfoResult

boolean
required
Whether sandboxing is supported.
string
required
Platform identifier: "linux", "macos", or "unsupported".
string
required
Human-readable description of the sandbox backend and any limitations.

Example

Use Cases


Usage Pattern

A typical application setup: