Repository navigation
Conversation
BaaRai
merged commit Nov 23, 2026
81d2051
into
BaaRai:feat/agent-uid-isolation-rebased
6 checks passed
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.
Fix for PR #478 permission race
This follows up the confirmed
shareWithExecGroupfinding in the review on #478. An executor could swap a run-directory entry for a symlink while the root server was sharing it, redirecting a pathname-basedchmodto a root-only file.The sharing walk now opens each entry relative to its already-open parent with
O_NOFOLLOW, and changes ownership and mode through that descriptor. It also refuses regular files with multiple hard links, which could otherwise alias an inode outside the run directory. Existing symlinks remain untraversed.Verification
0600file became0777. It passes with this fix.go test ./...passed as a non-root user.servertest binary passed as root, including restored-directory and isolation tests. No live PostgreSQL DSN was configured for this run.go vet ./serverand macOS/Windowsgo build ./serverpassed.This PR targets #478's feature branch so its author can incorporate the fix there. The separate conditional
LC_environment-allowlist observation is outside this patch.