Skip to content

vendor: github.com/moby/sys/userns v0.2.1 - #14130

Merged
fuweid merged 1 commit into
containerd:mainfrom
thaJeztah:bump_userns
Sep 9, 2026
Merged

fuweid merged 1 commit into
containerd:mainfrom
thaJeztah:bump_userns

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

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

@thaJeztah thaJeztah added this to the 2.4 milestone Sep 8, 2026
Copilot AI lite review requested due to automatic review settings September 8, 2026 18:00
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Sep 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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/userns from v0.2.0 to v0.2.1 in go.mod, go.sum, and vendor/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]>
@dmcgowan dmcgowan moved this from Needs Triage to Review In Progress in Pull Request Review Sep 9, 2026
@fuweid
fuweid added this pull request to the merge queue Sep 9, 2026
Merged via the queue into containerd:main with commit cf01d87 Sep 9, 2026
55 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants