Understand Filesystem Controls
NemoClaw restricts which paths the agent can read and write, protecting system binaries, configuration files, and gateway credentials.
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/.hermes directory contains Hermes runtime configuration, generated environment settings, logs, platform state, and durable database state.
NemoClaw writes config.yaml and .env during onboarding and rebuilds.
Direct edits to these files can be overwritten when NemoClaw regenerates the image.
Hermes also stores runtime state such as state.db, logs, and platform sessions under the .hermes tree.
Messaging sessions such as WhatsApp pairing can remain mutable by design so they survive rebuilds.
For plan-aware current images, the Shields workflow derives the Hermes lock plan from its agent manifest. Historical Hermes images that have a bundled helper but no generated plan use the helper’s reviewed legacy inventory until the sandbox is rebuilt.
It locks cron, hooks, platforms, plugins, profiles, skills, skins, weixin, and workspace to root:sandbox.
The profiles/dashboard-home carve-out remains sandbox:sandbox 0700, and the guard does not traverse or rewrite its descendants.
It locks the pairing confidentiality root to root:sandbox 0710.
Hermes runtime directories without a Shields declaration remain mutable.
The shared state-directory guard applies the manifest declaration to pairing on current Hermes images.
On historical images, the reviewed legacy inventory also treats present credentials and identity directories as confidentiality roots.
The guard sets the root to root:sandbox 0710, keeps it traversable but unlistable to the sandbox group, and sets every descendant to root:root with no group or world permission bits.
As a result, a known-name probe for a missing direct child returns ENOENT, while directory listing, nested traversal, and protected-file reads return EACCES.
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.