Cease using deprecated runc userlookup

Instead switch to github.com/moby/sys/user, which we already had
as an indirect dependency.

Signed-off-by: Matt Heon <mheon@redhat.com>
This commit is contained in:
Matt Heon 2024-02-02 10:32:41 -05:00
parent 91b8f208a2
commit 9fb57d346f
9 changed files with 9 additions and 9 deletions

2
go.mod
View file

@ -43,6 +43,7 @@ require (
github.com/mattn/go-shellwords v1.0.12
github.com/mattn/go-sqlite3 v1.14.20
github.com/mdlayher/vsock v1.2.1
github.com/moby/sys/user v0.1.0
github.com/moby/term v0.5.0
github.com/nxadm/tail v1.4.11
github.com/onsi/ginkgo/v2 v2.15.0
@ -164,7 +165,6 @@ require (
github.com/moby/patternmatcher v0.6.0 // indirect
github.com/moby/sys/mountinfo v0.7.1 // indirect
github.com/moby/sys/sequential v0.5.0 // indirect
github.com/moby/sys/user v0.1.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/morikuni/aec v1.0.0 // indirect

View file

@ -47,7 +47,7 @@ import (
"github.com/containers/storage/pkg/lockfile"
stypes "github.com/containers/storage/types"
securejoin "github.com/cyphar/filepath-securejoin"
runcuser "github.com/opencontainers/runc/libcontainer/user"
runcuser "github.com/moby/sys/user"
spec "github.com/opencontainers/runtime-spec/specs-go"
"github.com/opencontainers/runtime-tools/generate"
"github.com/opencontainers/selinux/go-selinux"

View file

@ -3,7 +3,7 @@
package libpod
import (
"github.com/opencontainers/runc/libcontainer/user"
"github.com/moby/sys/user"
spec "github.com/opencontainers/runtime-spec/specs-go"
)

View file

@ -4,7 +4,7 @@ package libpod
import (
"github.com/containers/common/pkg/capabilities"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/moby/sys/user"
spec "github.com/opencontainers/runtime-spec/specs-go"
)

View file

@ -5,7 +5,7 @@ import (
"strconv"
securejoin "github.com/cyphar/filepath-securejoin"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/moby/sys/user"
"github.com/sirupsen/logrus"
)

View file

@ -8,7 +8,7 @@ import (
"sync"
"github.com/containers/storage/pkg/lockfile"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/moby/sys/user"
spec "github.com/opencontainers/runtime-spec/specs-go"
)

View file

@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/opencontainers/runc/libcontainer/user"
"github.com/moby/sys/user"
spec "github.com/opencontainers/runtime-spec/specs-go"
)

View file

@ -28,7 +28,7 @@ import (
"github.com/containers/storage/pkg/idtools"
stypes "github.com/containers/storage/types"
securejoin "github.com/cyphar/filepath-securejoin"
ruser "github.com/opencontainers/runc/libcontainer/user"
ruser "github.com/moby/sys/user"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/sirupsen/logrus"
"golang.org/x/term"

View file

@ -6,7 +6,7 @@ import (
"time"
"github.com/containers/storage/pkg/idtools"
ruser "github.com/opencontainers/runc/libcontainer/user"
ruser "github.com/moby/sys/user"
"github.com/opencontainers/runtime-spec/specs-go"
"github.com/stretchr/testify/assert"
)