File tree Expand file tree Collapse file tree 16 files changed +98
-10
lines changed
util/entitlements/security
github.com/moby/sys/user/userns Expand file tree Collapse file tree 16 files changed +98
-10
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,12 @@ linters-settings:
52
52
desc : The containerd errdefs package was migrated to a separate module. Use github.com/containerd/errdefs instead.
53
53
- pkg : " github.com/containerd/containerd/log"
54
54
desc : The containerd log package was migrated to a separate module. Use github.com/containerd/log instead.
55
+ - pkg : " github.com/containerd/containerd/pkg/userns"
56
+ desc : Use github.com/moby/sys/user/userns instead.
55
57
- pkg : " github.com/containerd/containerd/platforms"
56
58
desc : The containerd platforms package was migrated to a separate module. Use github.com/containerd/platforms instead.
59
+ - pkg : " github.com/opencontainers/runc/libcontainer/userns"
60
+ desc : Use github.com/moby/sys/user/userns instead.
57
61
- pkg : " io/ioutil"
58
62
desc : The io/ioutil package has been deprecated.
59
63
forbidigo :
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ import (
15
15
"github.com/containerd/containerd/labels"
16
16
"github.com/containerd/containerd/leases"
17
17
"github.com/containerd/containerd/mount"
18
- "github.com/containerd/containerd/pkg/userns"
19
18
"github.com/containerd/containerd/snapshots"
20
19
cerrdefs "github.com/containerd/errdefs"
21
20
"github.com/docker/docker/pkg/idtools"
@@ -34,6 +33,7 @@ import (
34
33
rootlessmountopts "github.com/moby/buildkit/util/rootless/mountopts"
35
34
"github.com/moby/buildkit/util/winlayers"
36
35
"github.com/moby/sys/mountinfo"
36
+ "github.com/moby/sys/user/userns"
37
37
digest "github.com/opencontainers/go-digest"
38
38
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
39
39
"github.com/pkg/errors"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import (
16
16
"sync"
17
17
18
18
"github.com/containerd/containerd/defaults"
19
- "github.com/containerd/containerd/pkg/userns"
20
19
"github.com/containerd/containerd/remotes/docker"
21
20
"github.com/containerd/containerd/sys"
22
21
"github.com/containerd/platforms"
@@ -58,6 +57,7 @@ import (
58
57
"github.com/moby/buildkit/util/tracing/transform"
59
58
"github.com/moby/buildkit/version"
60
59
"github.com/moby/buildkit/worker"
60
+ "github.com/moby/sys/user/userns"
61
61
ocispecs "github.com/opencontainers/image-spec/specs-go/v1"
62
62
"github.com/pkg/errors"
63
63
"github.com/sirupsen/logrus"
Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ import (
14
14
15
15
ctd "github.com/containerd/containerd"
16
16
"github.com/containerd/containerd/defaults"
17
- "github.com/containerd/containerd/pkg/userns"
18
17
"github.com/moby/buildkit/cmd/buildkitd/config"
19
18
"github.com/moby/buildkit/util/bklog"
20
19
"github.com/moby/buildkit/util/network/cniprovider"
21
20
"github.com/moby/buildkit/util/network/netproviders"
22
21
"github.com/moby/buildkit/worker"
23
22
"github.com/moby/buildkit/worker/base"
24
23
"github.com/moby/buildkit/worker/containerd"
24
+ "github.com/moby/sys/user/userns"
25
25
"github.com/pelletier/go-toml"
26
26
"github.com/pkg/errors"
27
27
"github.com/urfave/cli"
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import (
16
16
snapshotsapi "github.com/containerd/containerd/api/services/snapshots/v1"
17
17
"github.com/containerd/containerd/defaults"
18
18
"github.com/containerd/containerd/pkg/dialer"
19
- "github.com/containerd/containerd/pkg/userns"
20
19
"github.com/containerd/containerd/reference"
21
20
"github.com/containerd/containerd/remotes/docker"
22
21
ctdsnapshot "github.com/containerd/containerd/snapshots"
@@ -40,6 +39,7 @@ import (
40
39
"github.com/moby/buildkit/worker"
41
40
"github.com/moby/buildkit/worker/base"
42
41
"github.com/moby/buildkit/worker/runc"
42
+ "github.com/moby/sys/user/userns"
43
43
"github.com/pelletier/go-toml"
44
44
"github.com/pkg/errors"
45
45
"github.com/sirupsen/logrus"
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ import (
13
13
"github.com/containerd/containerd/mount"
14
14
"github.com/containerd/containerd/namespaces"
15
15
"github.com/containerd/containerd/oci"
16
- "github.com/containerd/containerd/pkg/userns"
17
16
"github.com/docker/docker/pkg/idtools"
18
17
"github.com/mitchellh/hashstructure/v2"
19
18
"github.com/moby/buildkit/executor"
20
19
"github.com/moby/buildkit/snapshot"
21
20
"github.com/moby/buildkit/util/network"
22
21
rootlessmountopts "github.com/moby/buildkit/util/rootless/mountopts"
23
22
traceexec "github.com/moby/buildkit/util/tracing/exec"
23
+ "github.com/moby/sys/user/userns"
24
24
specs "github.com/opencontainers/runtime-spec/specs-go"
25
25
"github.com/opencontainers/selinux/go-selinux"
26
26
"github.com/pkg/errors"
Original file line number Diff line number Diff line change 6
6
"syscall"
7
7
8
8
"github.com/containerd/containerd/mount"
9
- "github.com/containerd/containerd/pkg/userns"
10
9
rootlessmountopts "github.com/moby/buildkit/util/rootless/mountopts"
10
+ "github.com/moby/sys/user/userns"
11
11
"github.com/pkg/errors"
12
12
)
13
13
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import (
5
5
"strconv"
6
6
7
7
"github.com/containerd/containerd/leases"
8
- "github.com/containerd/containerd/pkg/userns"
9
8
"github.com/containerd/containerd/snapshots"
10
9
"github.com/moby/buildkit/identity"
11
10
"github.com/moby/buildkit/util/bklog"
12
11
"github.com/moby/buildkit/util/leaseutil"
12
+ "github.com/moby/sys/user/userns"
13
13
"github.com/pkg/errors"
14
14
)
15
15
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import (
7
7
"sync"
8
8
9
9
"github.com/containerd/containerd/mount"
10
- "github.com/containerd/containerd/pkg/userns"
11
10
"github.com/containerd/containerd/snapshots"
12
11
"github.com/docker/docker/pkg/idtools"
13
12
"github.com/moby/buildkit/executor"
13
+ "github.com/moby/sys/user/userns"
14
14
"github.com/pkg/errors"
15
15
)
16
16
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"github.com/moby/buildkit/util/bklog"
12
12
13
13
"github.com/containerd/containerd/mount"
14
- "github.com/containerd/containerd/pkg/userns"
15
14
"github.com/docker/docker/pkg/idtools"
16
15
"github.com/moby/buildkit/cache"
17
16
"github.com/moby/buildkit/client"
@@ -23,6 +22,7 @@ import (
23
22
"github.com/moby/buildkit/solver/pb"
24
23
"github.com/moby/buildkit/util/grpcerrors"
25
24
"github.com/moby/locker"
25
+ "github.com/moby/sys/user/userns"
26
26
"github.com/pkg/errors"
27
27
"google.golang.org/grpc/codes"
28
28
)
You can’t perform that action at this time.
0 commit comments