{"version":"2.1.337","anchor":"linux-rm-check-shim-for-hosted-worker-containers","canonical_anchor":"linux-rm-check-shim-for-hosted-worker-containers","heading":"Extra check on rm in hosted Linux containers","tier":"internal","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/linux-rm-check-shim-for-hosted-worker-containers","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Extra check on `rm` in hosted Linux containers\n\nIn hosted Linux worker containers, Claude Code can now route `rm` through a checked version, and refuses the command if that check cannot be set up\n\n**What**\n\nA hosted worker container is an isolated environment where Claude Code runs on a hosted service rather than on your own computer. Claude Code can now wrap the `rm` command (which deletes files) in that setting. The wrapper makes `rm` use a checked version. It is active only when all of these hold:\n\n- the system is Linux\n\n- Claude Code is running in a hosted worker container\n\n- the check's mode is not set to off\n\nIf the check cannot be set up, the command is not run. Claude is then told to run each `rm` as its own command, with full paths and no variables or wildcards.\n\n**Why**\n\nThis adds a safety check on file deletion in hosted environments. If an `rm` command is refused there, splitting it into simple commands with full paths is the way forward.\n\n- Area: Bash Safety\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}