Translate guest paths through the sysroot sidecar#242
Open
henrybear327 wants to merge 3 commits into
Open
Conversation
henrybear327
force-pushed
the
sysroot/consolidate
branch
2 times, most recently
from
July 23, 2026 12:46
8047c9c to
a24adb1
Compare
jserv
reviewed
Jul 23, 2026
jserv
reviewed
Jul 23, 2026
henrybear327
force-pushed
the
sysroot/consolidate
branch
2 times, most recently
from
July 23, 2026 14:14
c159700 to
e446b7b
Compare
Collaborator
Author
|
Documentation rewriting in progress. |
henrybear327
force-pushed
the
sysroot/consolidate
branch
2 times, most recently
from
July 23, 2026 15:01
de568de to
bb66e0a
Compare
jserv
reviewed
Jul 23, 2026
henrybear327
force-pushed
the
sysroot/consolidate
branch
from
July 23, 2026 15:57
bb66e0a to
ee35b0d
Compare
Consolidate the sysroot path-translation handlers so guest-visible paths are reconstructed and reverse-mapped consistently across syscalls.
Cover the sysroot translation model end to end: - Add the sysroot path-translation matrix test and the exec-cwd regression test. - Run the path matrix on a case-sensitive volume and validate it against a real kernel. - Cover guest-private prefix classification, execveat /dev/shm nofollow, the absock namespace lifecycle, and PT_INTERP tokenized-parent fallback. - Add the sidecar-state check helper.
Describe how guest paths are translated through the sysroot and sidecar, including AF_UNIX socket addresses, and link it from the internals and usage docs.
henrybear327
force-pushed
the
sysroot/consolidate
branch
from
July 23, 2026 16:13
ee35b0d to
6a7cc5a
Compare
jserv
requested changes
Jul 24, 2026
jserv
left a comment
Contributor
There was a problem hiding this comment.
Rebase latest main branch and resolve conflicts.
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.
Consolidate the sysroot path-translation handlers so guest-visible paths are reconstructed and reverse-mapped consistently across syscalls.
Closes #233
Summary by cubic
Unifies sysroot path translation through the sidecar so all syscalls resolve and reverse-map guest paths consistently across fork/exec, networking, and inotify. Adds AF_UNIX pathname translation with safe over‑length handling, tighter loader fallback,
/dev/shmno‑follow/non‑block opens,AT_EMPTY_PATHsupport, and a full test suite and docs.path.cused by exec, fs/stat, inotify, and networking, with sysroot dispatch, containment, sidecar handling, a token‑awareAT_FDCWDfast path, anAT_EMPTY_PATHhelper, and/dev/shmopen flags (O_NOFOLLOW|O_NONBLOCK); inotify snapshots emit guest‑visible names and hide sidecar artifacts.PT_INTERPandexecveatshare translation; loader falls back to/lib/<basename>only if the rewritten interpreter both differs and exists;execveattranslates dirfd‑relative names and opens/dev/shmleaves withO_NOFOLLOW;getcwd,/proc/self/cwd, and/proc/self/exeare reverse‑mapped after fork/exec.sun_pathis shortened via a symlink in a private absock dir shared across the forked tree; socket addresses round‑trip guest↔host across bind/connect/sendmsg/accept/recvmsg; the namespace cleans up without leaks on exit.docs/sysroot.md; added the path‑translation matrix (casefold and case‑sensitive lanes) validated against a real kernel, the exec‑cwd regression test,/dev/shmexecveatno‑follow test, absock cleanup test, and a sidecar state checker wired intomake check.Written for commit 6a7cc5a. Summary will update on new commits.