Skip to content

vendor: Update module github.com/moby/sys/capability to v0.5.0 - #7463

Open
renovate-bot wants to merge 1 commit into
docker:masterfrom
renovate-bot:renovate/github.com-moby-sys-capability-0.x
Open

renovate-bot wants to merge 1 commit into
docker:masterfrom
renovate-bot:renovate/github.com-moby-sys-capability-0.x

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/moby/sys/capability v0.4.0 → v0.5.0 age confidence

Release Notes

moby/sys (github.com/moby/sys/capability)

v0.5.0

Breaking changes

IdentityMapping.ToHost no longer special-cases the remapped root

ToHost used to skip the ID-map lookup when the ID passed in was equal to the
host remapped-root ID (as returned by RootPair). This was wrong: the arguments
are container IDs, and comparing them against a host value made no sense.

With a subuid/subgid base below 65536 (for example rootless:1000:65536, used
to align dind-rootless container UIDs), a non-root container UID equal to the
base (1000 in this example) was returned unmapped, so it appeared as root
inside the container.

ToHost now always translates both UID and GID through the mappings.
Container root (0) still maps to the host remapped-root base, same as
RootPair returns. An empty (nil) mapping is treated as identity.

What this means for callers:

  • Pass container IDs only. Code that passes the host remapped-root pair (for
    example, the result of RootPair) to ToHost and expects it back unchanged
    gets a different result or an error now. Pass 0, 0 instead, or use
    RootPair directly.
  • If ToHost returns an error, both returned IDs are now -1. Previously
    they could hold a partially translated value.

The only known caller that was relying on old behavior was moby/moby;
it was fixed by moby/moby#53859.

See #​242 and #​241.

Windows: MkdirAndChown no longer creates parent directories

On Windows, MkdirAndChown used to call os.MkdirAll, so it also created any
missing parent directories, unlike on Unix. It now uses os.Mkdir, as
documented. Use MkdirAllAndChown if you need parent directories created. See
#​236.

Changes

  • user: GetExecUser: use strings.Cut to split user:group (#​228)
  • user: GetExecUser: always clone default Sgids (#​229)
  • user: GetExecUser: rewrite with parseUserArg, parseGroupArg (#​231, #​232)
  • user: parseNumeric: require non-empty values (#​235)
  • user: MkdirAllAndChown, MkdirAndChown: DRY (#​244)
  • user: GoDoc fixes (#​233, #​237)
  • user: test fixes and cleanups (#​227, #​234)
  • user: require Go 1.24 (#​272)

New Contributors

Full Changelog: moby/sys@user/v0.4.1...user/v0.5.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@forking-renovate

Copy link
Copy Markdown

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: vendor.sum
go: cannot find main module, but -modfile was set.
	-modfile cannot be used to set the module root directory.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thaJeztah

Copy link
Copy Markdown
Member

Looks like it got confused because of the multi-module repository;

Screenshot 2026-11-03 at 14 58 04

Signed-off-by: Mend Renovate <bot@renovateapp.com>
@renovate-bot
renovate-bot force-pushed the renovate/github.com-moby-sys-capability-0.x branch from f2e931e to 964a3b1 Compare November 3, 2026 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants