fix: command exec inside minvmd - #1176
Merged
Merged
Conversation
twitchyliquid64
enabled auto-merge (rebase)
August 5, 2026 06:00
📝 WalkthroughWalkthroughThe change stages the guest executable at ChangesGuest shim execution
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant enter_rootfs
participant stage_self_exe
participant nsenter
participant SessionExec
enter_rootfs->>stage_self_exe: Stage executable at /run/minimald
stage_self_exe->>nsenter: Register /run/minimald
SessionExec->>nsenter: Resolve namespace shim
nsenter-->>SessionExec: Return registered shim path
SessionExec->>SessionExec: Spawn session command and report errors
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
twitchyliquid64
force-pushed
the
tom/sftp
branch
from
August 5, 2026 16:31
2317da9 to
eabd2b1
Compare
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
evanspearman
approved these changes
Aug 5, 2026
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.
Fixes #1175
Summary by CodeRabbit
Bug Fixes
Tests
Note
Fix command exec inside minvmd by staging a runnable daemon binary for nsenter re-execs
/proc/self/exeto a tmpfs path (/run/minimald) and registers it as the nsenter shim so subsequent re-execs resolve correctly.OnceLockshim registration (set_shim_exe/shim_exe), withInjection::commandnow preferring an explicit per-injection shim, then the registered shim, thencurrent_exe().Macroscope summarized eabd2b1.