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).
Sandbox-user images create
/sandbox/.openclawwith native mode0700andopenclaw.jsonwith0600. Root-mode images use2770(setgidsandbox:sandbox) and0660for the separate gateway identity. Rebuild existing sandboxes after updating NemoClaw to apply these defaults. - Native config ownership.
OpenClaw owns
openclaw.jsonafter first launch. NemoClaw does not maintain a config hash, seal, last-good copy, recovery anchor, baseline, or config guard for this file. Useopenclaw configure,openclaw config set, oropenclaw config unsetinside the sandbox. - 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.