{"version":"2.1.333","anchor":"sandbox-refuses-commands-when-protected-paths-go-through-pr","canonical_anchor":"sandbox-refuses-commands-when-protected-paths-go-through-pr","heading":"Sandbox refuses commands when a protected .claude file is reached through \/proc or \/dev\/fd","tier":"notice","area":"Sandbox","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sandbox-refuses-commands-when-protected-paths-go-through-pr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Sandbox refuses commands when a protected .claude file is reached through \/proc or \/dev\/fd\n\nSandboxed commands are refused when a link to a protected .claude file goes through \/proc or \/dev\/fd, or cannot be followed\n\n**What**\n\nThe sandbox is a restricted environment Claude Code uses to run shell commands so they cannot touch files they should not. Some files, such as `.claude\/settings.json`, are protected. A link (a file that points to another file or folder) can lead to one of these protected files.\n\nOn Linux and similar systems, with the sandbox switched on and not in relaxed mode, Claude Code now refuses commands in these cases:\n\n- a link at or above a protected `.claude` file goes through a per-process path such as `\/proc\/self\/cwd` or `\/dev\/fd`\n\n- a link at a protected file cannot be followed\n\nThe refusal covers sandboxed commands and also commands Claude asks to run outside the sandbox with `dangerouslyDisableSandbox`. An error message explains what happened and suggests running Claude Code with `--debug` for details.\n\nA second message appears when a link at a protected name has changed: commands are then refused until the sandbox is rebuilt. A change in whether Claude Code reads a worktree pointer also causes the sandbox to be rebuilt.\n\n**Why**\n\nIf your `.claude` files are links that pass through `\/proc` or `\/dev\/fd`, every command may be refused until you remove or replace the link.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}