Sandbox namespace

The Sandbox namespace contains the entire Landlock-Sharp public surface: one class and three enums. This reference documents each type member-by-member. For worked examples and conceptual background, see the guides and core concepts.

Definition

Namespace: Sandbox

Classes

Class Description
Landlock Entry point for building and enforcing a Landlock ruleset. Exposes the static support checks and ruleset factory, plus the instance methods for adding rules and enforcing the sandbox.

Enums

Enum Description
Landlock.FileSystem Filesystem access rights. Each value maps to a LANDLOCK_ACCESS_FS_* kernel flag.
Landlock.Network TCP network access rights (BIND_TCP, CONNECT_TCP). Available from ABI 4.
Landlock.Scope IPC isolation flags (ABSTRACT_UNIX_SOCKET, SIGNAL). Available from ABI 6.

Applies to

Sandbox.dll — Linux only (x86-64, kernel ≥ 5.13). See the installation requirements and the guides.

© 2026 Curiosity. All rights reserved.