{"version":"2.1.326","anchor":"bash-sandbox-bwrap-accepts-sync-and-info-fds","canonical_anchor":"bash-sandbox-bwrap-accepts-sync-and-info-fds","heading":"The Linux Bash sandbox can report when it starts and ends","tier":"internal","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/bash-sandbox-bwrap-accepts-sync-and-info-fds","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### The Linux Bash sandbox can report when it starts and ends\n\nOn Linux, the Bash sandbox can now be given two channels that bubblewrap uses to report the sandbox's state and when it ends\n\n**What**\n\nOn Linux, Claude Code can run shell commands inside a sandbox, a walled-off space that limits what a command can touch. It builds that sandbox with a program called bubblewrap (`bwrap`). The sandbox setup now accepts two extra file descriptors. A file descriptor is a numbered channel a program can read from or write to. Claude Code passes them on to bubblewrap:\n\n- One goes to bubblewrap's `--sync-fd` option, which ties the channel to the sandbox's lifetime.\n\n- One goes to bubblewrap's `--info-fd` option, which reports information about the running sandbox.\n\n**Why**\n\nWith these two channels, whatever starts the sandbox can tell when it has started and when it has ended, instead of guessing.\n\n- Area: Sandbox\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}