Skip to content

Sandbox cannot start commands when firewall mode requires missing slirp4netns #337331

Open

Description

@rwoll

Description

[This was while working with the new DevContainer feature.]

The sandbox fails before executing any shell command because firewall network enforcement requires slirp4netns, but the binary is not available on PATH.

Error

Bubblewrap: network.enforcementMode='firewall' requires 'slirp4netns' on PATH: No such file or directory (os error 2). Install slirp4netns or select a different network.enforcementMode.

Repro:

  1. Start VS Code session with new DevContainer feature.
  2. Send prompt: "get a screenshot of vscode"

Activity

  1. added
    bug
    on Sep 22, 2026
  2. Harini410 commented on Oct 20, 2026

    @Harini410

    I’ve addressed this issue by updating sandbox diagnostics to report missing network dependencies even when allowOutbound is unspecified or set to false. I’ve also added regression tests for missing and available network dependencies. The changes are submitted in PR #342858 for review.

  3. Harini410 commented on Oct 24, 2026

    @Harini410

    Hi Christof Marti (@chrmarti), just following up on this PR linked to the issue. The review comments have been addressed, and the targeted tests are passing. Could you please take a look when you get a chance? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions