migrate to github.com/moby/sys/userns

Commit 8437c567d8 migrated the use of the
userns package to the github.com/moby/sys/user module.

After further discussion with maintainers, it was decided to move the
userns package to a separate module, as it has no direct relation with
"user" operations (other than having "user" in its name).

This patch migrates our code to use the new module.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-08-08 12:48:54 +02:00
parent 58cf6e2830
commit 9776047243
21 changed files with 226 additions and 19 deletions

View File

@@ -29,7 +29,7 @@ import (
"syscall"
"time"
"github.com/moby/sys/user/userns"
"github.com/moby/sys/userns"
"github.com/containerd/containerd/v2/pkg/archive/tarheader"
"github.com/containerd/containerd/v2/pkg/epoch"