Repository navigation
vendor: github.com/moby/sys/userns v0.2.1 - #14130
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The changes are a straightforward dependency bump with a narrowly-scoped, internally-consistent fix to userns detection for OpenVZ.
Pull request overview
This PR updates the vendored github.com/moby/sys/userns dependency to v0.2.1 to improve user-namespace detection on OpenVZ, where namespace inode numbers can be virtualized and therefore unreliable for detection.
Changes:
- Bump
github.com/moby/sys/usernsfrom v0.2.0 to v0.2.1 ingo.mod,go.sum, andvendor/modules.txt. - Update Linux user-namespace detection to treat the init userns inode match as definitive, and to fall back to
/proc/self/uid_map-based detection when running under OpenVZ. - Add OpenVZ environment detection using
/proc/vz+ absence of/proc/bc(aligned with systemd’s approach).
File summaries
| File | Description |
|---|---|
| vendor/modules.txt | Updates vendored module version metadata for github.com/moby/sys/userns to v0.2.1. |
| vendor/github.com/moby/sys/userns/userns_linux.go | Adjusts userns detection logic with an OpenVZ-specific fallback path and adds OpenVZ detection helper. |
| go.sum | Updates checksums to reflect the v0.2.1 module version. |
| go.mod | Bumps github.com/moby/sys/userns requirement to v0.2.1. |
Review details
- Files reviewed: 1/4 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
userns: fix user-namespace detection on OpenVZ, where namespace inode numbers are virtualized. full diff: moby/sys@userns/v0.2.0...userns/v0.2.1 Signed-off-by: Sebastiaan van Stijn <[email protected]>
thaJeztah
force-pushed
the
bump_userns
branch
from
September 8, 2026 18:32
daea765 to
f303983
Compare
dmcgowan
approved these changes
Sep 9, 2026
fuweid
approved these changes
Sep 9, 2026
This was referenced Sep 15, 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.
userns: fix user-namespace detection on OpenVZ, where namespace inode numbers are virtualized.
full diff: moby/sys@userns/v0.2.0...userns/v0.2.1