How Landrun sandboxing works
mainLandrun uses the Linux Landlock security module to create a secure sandbox environment. It provides fine-grained access control for the filesystem, directories, execution, TCP networking, and IPC (Inter-Process Communication).
By default, Landrun operates in a restrictive mode. If no rules are specified, it applies the maximum restrictions supported by your current kernel. To relax these restrictions, you can use the --unrestricted-scoped flag.
Key Security Capabilities:
- Filesystem: Control over reading, writing, executing, and truncating files, as well as directory traversal and object creation.
- Network: Restricting TCP port binding and connections (requires Linux 6.7+).
- IPC Scoping: Restricting abstract UNIX sockets and signal sending (requires Linux 6.12+).
- UNIX Sockets: Pathname UNIX socket control via the
--unixflag (requires Landlock ABI v9).