Understand Filesystem Controls
NemoClaw uses OpenShell filesystem policy to restrict access outside the writable agent state tree.
OpenShell covers additional filesystem enforcement details, including hard_requirement compatibility mode for Landlock and policy path validation rules.
Refer to the Filesystem Controls section of the OpenShell Security Best Practices.
Read-Only System Paths
The container mounts system directories read-only to prevent the agent from modifying binaries, libraries, or configuration files.
Agent Config Directory
The /sandbox/.openclaw directory contains the OpenClaw gateway configuration (model routing, CORS settings, channel config).
The current entrypoint reads the gateway auth token from OpenClaw config when present, exports it as OPENCLAW_GATEWAY_TOKEN, and writes it to /tmp/nemoclaw-proxy-env.sh so interactive sandbox sessions can reach the gateway through system-wide shell hooks.
The launch boundary removes OPENCLAW_GATEWAY_TOKEN from the gateway process environment and does not pass its value in process arguments.
In root mode, the gateway process still runs as the separate gateway user, but the token is intentionally available to sandbox shells for local gateway access.
Writable agent state such as plugins, skills, hooks, and workspace metadata lives directly under /sandbox/.openclaw.
This directory remains writable so the agent can manage its own config, install skills, and write standard home-directory state. NemoClaw does not provide post-provisioning immutability for the OpenClaw config or state tree.
- DAC permissions (default).
The sandbox user owns
/sandbox/.openclawwith mode2770(setgidsandbox:sandbox) andopenclaw.jsonwith mode660, so the agent and its group can read and write config directly. - Config integrity hash.
The image includes a SHA256 hash of
openclaw.json. In mutable state,.config-hashis sandbox-owned and is not a tamper-proof trust anchor. Use supported host config commands so the config and hash change together. - Gateway token environment.
The entrypoint exports
OPENCLAW_GATEWAY_TOKENand writes it to/tmp/nemoclaw-proxy-env.shfor interactive sandbox sessions. The gateway process reads the token fromopenclaw.jsoninstead. Code running as the sandbox user can read that token while the file exists.
Writable Paths
The agent has read-write access to /sandbox, /tmp, /dev/null, and /dev/pts.
Landlock LSM Enforcement
Landlock is a Linux Security Module that enforces filesystem access rules at the kernel level.