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

@@ -23,7 +23,7 @@ import (
"strings"
"github.com/containerd/containerd/v2/pkg/oci"
"github.com/moby/sys/user/userns"
"github.com/moby/sys/userns"
imagespec "github.com/opencontainers/image-spec/specs-go/v1"
runtimespec "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/selinux/go-selinux"

View File

@@ -22,7 +22,7 @@ import (
"strconv"
"testing"
"github.com/moby/sys/user/userns"
"github.com/moby/sys/userns"
imagespec "github.com/opencontainers/image-spec/specs-go/v1"
runtimespec "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/selinux/go-selinux"

View File

@@ -19,7 +19,7 @@ package server
import (
"fmt"
"github.com/moby/sys/user/userns"
"github.com/moby/sys/userns"
"github.com/opencontainers/selinux/go-selinux"
"tags.cncf.io/container-device-interface/pkg/cdi"