Repository navigation
Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Comment |
Reviewer's GuideRestores Linux dynamically linked command startup by preserving runtime path aliases and mounting standard runtime roots with Birdcage's Sequence diagram for Linux sandbox command startupsequenceDiagram
participant Caller
participant SandboxProfile
participant Sandbox
participant Birdcage
participant Command
Caller->>SandboxProfile: new()
SandboxProfile-->>Sandbox: runtime_paths with original aliases
Caller->>Sandbox: allow executable path
Sandbox->>Sandbox: ensure_program_whitelisted()
Sandbox->>Birdcage: ExecuteAndRead(runtime paths)
Sandbox->>Birdcage: launch authorized command
Birdcage->>Command: map runtime libraries and loader
Command-->>Caller: starts inside sandbox
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This was referenced Sep 23, 2026
leynos
force-pushed
the
test-quality-protocol-roundtrip-20260923-restacked
branch
from
September 24, 2026 01:12
6a36600 to
89fb8b3
Compare
This was referenced Sep 24, 2026
leynos
force-pushed
the
test-quality-protocol-roundtrip-20260923-restacked
branch
from
September 24, 2026 02:42
89fb8b3 to
ad9864d
Compare
Preserve original Linux runtime-root aliases and give dynamic loaders read-only executable mappings. Keep these defaults separate from the caller's exact executable allowlist. Cover direct `/usr/bin/env` launch in a single-threaded child and record the permission boundary in ADR 013.
leynos
force-pushed
the
harden-sandbox-runtime-paths
branch
from
September 24, 2026 03:28
e39abdc to
31858ff
Compare
leynos
changed the base branch from
test-quality-protocol-roundtrip-20260923-restacked
to
harden-sandbox-runner-compat-restacked-20260924
September 24, 2026 03:28
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
An explicitly authorized Linux command could fail before startup because Birdcage mounted runtime libraries with no-execute permissions and Weaver discarded loader aliases such as
/lib64. This branch preserves each existing runtime path spelling and mounts those paths read-only with executable mappings. The caller's exact initial-command allowlist remains separate.This layer follows runner-policy PR #303, above PR #296 and unblocks the later five-scenario sandbox test-quality layer. It contains one production fix, one direct-command regression, and ADR 013.
Review walkthrough
ExecuteAndReadwithout authorizing the loader as the initial command.Validation
31858ff923564c58740fd3e54284330fbf5edcb9:check-fmt,spelling,lint(Clippy and Whitaker),test,typecheck,markdownlint,nixie, andtest-workflow-contracts.make test: 1,562 nextest tests passed, four skipped; workspace doctests passed. Workflow contracts: 187 passed./usr/bin/envtrial passed under nextest on this head and, in an earlier targeted run, Cargo's fallback runner withThreads: 1, both Unicode environment markers in the sandboxed and restored worker, and neither marker in the parent. The unlisted canonical loader was rejected before activation.ReadproducedEPERM; canonicalizing aliases before Birdcage producedENOENT. Both edits were restored and the passing trial rerun.Notes
Local gates are green under this layer's current configuration. Parent PR #303 remains draft with hosted CI blocked before coverage by the Whitaker installer's incompatible
cargo-dylintrelease; this layer cannot be review-ready until that gate runs successfully. The five Gherkin scenarios remain assigned to the subsequent test-quality layer; this PR proves one direct command and does not claim those scenarios pass. The harness registers zero trials outside Linux. Local macOS compilation was unavailable because a macOS target is not installed; hosted checks must establish that platform's result.Summary by Sourcery
Restore reliable startup for explicitly authorized dynamically linked Linux commands without broadening the caller's executable authorization boundary.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests:
References