Skip to content

Commit 9fb57d3

Browse files
committed
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 <[email protected]>
1 parent 91b8f20 commit 9fb57d3

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ require (
4343
github.com/mattn/go-shellwords v1.0.12
4444
github.com/mattn/go-sqlite3 v1.14.20
4545
github.com/mdlayher/vsock v1.2.1
46+
github.com/moby/sys/user v0.1.0
4647
github.com/moby/term v0.5.0
4748
github.com/nxadm/tail v1.4.11
4849
github.com/onsi/ginkgo/v2 v2.15.0
@@ -164,7 +165,6 @@ require (
164165
github.com/moby/patternmatcher v0.6.0 // indirect
165166
github.com/moby/sys/mountinfo v0.7.1 // indirect
166167
github.com/moby/sys/sequential v0.5.0 // indirect
167-
github.com/moby/sys/user v0.1.0 // indirect
168168
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
169169
github.com/modern-go/reflect2 v1.0.2 // indirect
170170
github.com/morikuni/aec v1.0.0 // indirect

libpod/container_internal_common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import (
4747
"github.com/containers/storage/pkg/lockfile"
4848
stypes "github.com/containers/storage/types"
4949
securejoin "github.com/cyphar/filepath-securejoin"
50-
runcuser "github.com/opencontainers/runc/libcontainer/user"
50+
runcuser "github.com/moby/sys/user"
5151
spec "github.com/opencontainers/runtime-spec/specs-go"
5252
"github.com/opencontainers/runtime-tools/generate"
5353
"github.com/opencontainers/selinux/go-selinux"

libpod/oci_conmon_exec_freebsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package libpod
44

55
import (
6-
"github.com/opencontainers/runc/libcontainer/user"
6+
"github.com/moby/sys/user"
77
spec "github.com/opencontainers/runtime-spec/specs-go"
88
)
99

libpod/oci_conmon_exec_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package libpod
44

55
import (
66
"github.com/containers/common/pkg/capabilities"
7-
"github.com/opencontainers/runc/libcontainer/user"
7+
"github.com/moby/sys/user"
88
spec "github.com/opencontainers/runtime-spec/specs-go"
99
)
1010

pkg/lookup/lookup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66

77
securejoin "github.com/cyphar/filepath-securejoin"
8-
"github.com/opencontainers/runc/libcontainer/user"
8+
"github.com/moby/sys/user"
99
"github.com/sirupsen/logrus"
1010
)
1111

pkg/rootless/rootless.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"sync"
99

1010
"github.com/containers/storage/pkg/lockfile"
11-
"github.com/opencontainers/runc/libcontainer/user"
11+
"github.com/moby/sys/user"
1212
spec "github.com/opencontainers/runtime-spec/specs-go"
1313
)
1414

pkg/rootless/rootless_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"reflect"
55
"testing"
66

7-
"github.com/opencontainers/runc/libcontainer/user"
7+
"github.com/moby/sys/user"
88
spec "github.com/opencontainers/runtime-spec/specs-go"
99
)
1010

pkg/util/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/containers/storage/pkg/idtools"
2929
stypes "github.com/containers/storage/types"
3030
securejoin "github.com/cyphar/filepath-securejoin"
31-
ruser "github.com/opencontainers/runc/libcontainer/user"
31+
ruser "github.com/moby/sys/user"
3232
"github.com/opencontainers/runtime-spec/specs-go"
3333
"github.com/sirupsen/logrus"
3434
"golang.org/x/term"

pkg/util/utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"time"
77

88
"github.com/containers/storage/pkg/idtools"
9-
ruser "github.com/opencontainers/runc/libcontainer/user"
9+
ruser "github.com/moby/sys/user"
1010
"github.com/opencontainers/runtime-spec/specs-go"
1111
"github.com/stretchr/testify/assert"
1212
)

0 commit comments

Comments
 (0)