Skip to content

fix: linux setuid sandbox helper permissions - #341292

Merged
Robo (deepak1556) merged 1 commit into
mainfrom
robo/fix_setuid_sandbox
Oct 13, 2026
Merged

Robo (deepak1556) merged 1 commit into
mainfrom
robo/fix_setuid_sandbox

Conversation

@deepak1556

Copy link
Copy Markdown
Collaborator

Fixes #339056

@deepak1556 Robo (deepak1556) added this to the 1.143.0 milestone Oct 13, 2026
@deepak1556 Robo (deepak1556) self-assigned this Oct 13, 2026
Copilot AI balanced review requested due to automatic review settings October 13, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The extraction fix preserves the required SUID mode and the new sanity pass validates final package ownership, permissions, and launch behavior.

0 open findings

What changed in this PR

Fixes Linux package builds losing the chrome-sandbox setuid permission during artifact extraction and adds regression coverage.

Changes:

  • Preserve permissions when extracting Linux compilation artifacts.
  • Add non-root DEB/RPM sandbox validation in sanity tests.
  • Configure containers and pipelines for dedicated setuid testing.
File Description
test/​sanity/​src/​main.ts Parses the setuid test option.
test/​sanity/​src/​index.ts Documents the CLI option.
test/​sanity/​src/​desktop.test.ts Validates helper permissions and launches through the setuid sandbox.
test/​sanity/​src/​context.ts Adds the setuid test setting.
test/​sanity/​scripts/​run-docker.sh Grants the required container capability.
test/​sanity/​README.md Documents setuid test behavior.
test/​sanity/​containers/​entrypoint.sh Creates a non-root test user with limited package privileges.
build/​azure-pipelines/​linux/​steps/​product-build-linux-download-compilation.yml Preserves archive permissions during extraction.
build/​azure-pipelines/​common/​sanity-tests.yml Adds and publishes the dedicated package test pass.

🧠 Review effort: Balanced


💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Preserve archived permissions when extracting Linux compilation artifacts.
The split compile/package pipeline lost chrome-sandbox's setuid bit during
non-root extraction, causing DEB installations to fail when user namespaces
were unavailable.

Add a separate DEB/RPM sanity pass that runs as non-root, validates the
installed helper's ownership and mode, and disables the namespace sandbox
to exercise the setuid fallback.
@github-actions

github-actions Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Base: 4d2e4b4a Current: f3402493

No screenshot changes.

@deepak1556
Robo (deepak1556) marked this pull request as ready for review October 13, 2026 16:46
@deepak1556
Robo (deepak1556) enabled auto-merge (squash) October 13, 2026 16:46
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • build/azure-pipelines/common/sanity-tests.yml
  • build/azure-pipelines/linux/steps/product-build-linux-download-compilation.yml
  • build/azure-pipelines/product-build.yml

Dmitriy Vasyura (@dmitrivMS)

Matched files:

  • build/azure-pipelines/common/sanity-tests.yml
  • test/sanity/README.md
  • test/sanity/containers/entrypoint.sh
  • test/sanity/scripts/run-docker.sh
  • test/sanity/src/context.ts
  • test/sanity/src/desktop.test.ts
  • test/sanity/src/index.ts
  • test/sanity/src/main.ts

@deepak1556
Robo (deepak1556) merged commit 68343b4 into main Oct 13, 2026
67 of 69 checks passed
@deepak1556
Robo (deepak1556) deleted the robo/fix_setuid_sandbox branch October 13, 2026 17:58
Don Jayamanne (DonJayamanne) added a commit that referenced this pull request Oct 13, 2026
…xploration-vscode

* origin/main: (40 commits)
  MSRC fixes (#341342)
  chat: render input attachments for the input model's session (#341350)
  chat: center subagent tool activity hooks (#341258)
  Manage Copilot plugin marketplaces through Agent Host (#341301)
  fix: linux setuid sandbox helper permissions (#341292)
  agentHost: resolve #chat chips on the host of the chat that shows them (#341332)
  [Perf] agentHost: limit archived sessions over Mission Control (#341327)
  Remember expanded state for "Other Models" in model picker (#341335)
  Offer Stop for copilot detached background shells  (#341310)
  agentHost: allow inherited peer chats to move workspaces (#341317)
  [Perf] agentHost: reduce Mission Control relay overhead (#341223)
  Fix Customizations modal spacing (#341144)
  Fix dependency cycle in QuickInputService and EditorResolverService (#341321)
  Fix Explorer refresh on restoring deleted workspace root folder (#341323)
  chat: Share and rate-limit core utility model requests (#340100)
  agentHost: open #chat chips on the connection that owns the chat (#341313)
  Fix flaky StorageMainService tests by awaiting storage warm-up (#341305)
  agentHost: record the default chat role instead of reading the default chat URI shape (#341293)
  welcome: preserve tab icon color with Modern Icons
  Fix flaky test in diskFileSystemProvider.test.ts (#341304)
  ...

# Conflicts:
#	src/vs/platform/agentHost/node/agentService.ts
#	src/vs/platform/agentHost/node/protocolServerHandler.ts
#	src/vs/platform/agentHost/test/node/protocolServerHandler.test.ts
#	src/vs/workbench/contrib/chat/browser/agentSessions/agentHost/agentHostSessionHandler.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Insiders 1.141.0 .deb: chrome-sandbox lost setuid bit, app aborts with SUID sandbox FATAL on Ubuntu

4 participants