Skip to content

Commit 8f418f1

Browse files
Vendor docker/docker, fsouza and more #2
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com> Vendors in fsouza/docker-client, docker/docker and a few more related. Of particular note, changes to the TweakCapabilities() function from docker/docker along with the parse.IDMappingOptions() function from Buildah. Please pay particular attention to the related changes in the call from libpod to those functions during the review. Passes baseline tests.
1 parent 8b3f759 commit 8f418f1

File tree

334 files changed

+4531
-1966
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

334 files changed

+4531
-1966
lines changed

libpod/container_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/containers/libpod/pkg/inspect"
1515
"github.com/containers/libpod/pkg/lookup"
1616
"github.com/containers/storage/pkg/stringid"
17-
"github.com/docker/docker/daemon/caps"
17+
"github.com/docker/docker/oci/caps"
1818
opentracing "github.com/opentracing/opentracing-go"
1919
"github.com/pkg/errors"
2020
"github.com/sirupsen/logrus"

pkg/spec/spec.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/containers/libpod/pkg/rootless"
1010
"github.com/containers/storage/pkg/mount"
1111
pmount "github.com/containers/storage/pkg/mount"
12-
"github.com/docker/docker/daemon/caps"
12+
"github.com/docker/docker/oci/caps"
1313
"github.com/docker/go-units"
1414
"github.com/opencontainers/runc/libcontainer/user"
1515
spec "github.com/opencontainers/runtime-spec/specs-go"
@@ -625,7 +625,7 @@ func setupCapabilities(config *CreateConfig, configSpec *spec.Spec) error {
625625
if useNotRoot(config.User) {
626626
configSpec.Process.Capabilities.Bounding = caplist
627627
}
628-
caplist, err = caps.TweakCapabilities(configSpec.Process.Capabilities.Bounding, config.CapAdd, config.CapDrop)
628+
caplist, err = caps.TweakCapabilities(configSpec.Process.Capabilities.Bounding, config.CapAdd, config.CapDrop, nil, false)
629629
if err != nil {
630630
return err
631631
}
@@ -636,7 +636,7 @@ func setupCapabilities(config *CreateConfig, configSpec *spec.Spec) error {
636636
configSpec.Process.Capabilities.Effective = caplist
637637
configSpec.Process.Capabilities.Ambient = caplist
638638
if useNotRoot(config.User) {
639-
caplist, err = caps.TweakCapabilities(bounding, config.CapAdd, config.CapDrop)
639+
caplist, err = caps.TweakCapabilities(bounding, config.CapAdd, config.CapDrop, nil, false)
640640
if err != nil {
641641
return err
642642
}

vendor.conf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ github.com/cri-o/ocicni 2d2983e40c242322a56c22a903785e7f83eb378c
2626
github.com/cyphar/filepath-securejoin v0.2.1
2727
github.com/davecgh/go-spew v1.1.0
2828
github.com/docker/distribution 5f6282db7d65e6d72ad7c2cc66310724a57be716
29-
github.com/docker/docker 86f080cff0914e9694068ed78d503701667c4c00
29+
github.com/docker/docker 54dddadc7d5d89fe0be88f76979f6f6ab0dede83
3030
github.com/docker/docker-credential-helpers v0.6.1
3131
github.com/docker/go-connections v0.4.0
3232
github.com/docker/go-units v0.3.2
33+
github.com/docker/libnetwork 5f7a3f68c3d9696229cdc09b8cb3d84c06b13e4e
3334
github.com/docker/libtrust aabc10ec26b754e797f9028f4589c5b7bd90dc20
3435
github.com/docker/spdystream 6480d4af844c189cf5dd913db24ddd339d3a4f85
3536
github.com/fatih/camelcase v1.0.0
@@ -96,9 +97,7 @@ github.com/varlink/go 3ac79db6fd6aec70924193b090962f92985fe199
9697
github.com/containers/buildah 3ba8822d309128f7d76599432b8d9cdf77d4032f
9798
# TODO: Gotty has not been updated since 2012. Can we find replacement?
9899
github.com/Nvveen/Gotty cd527374f1e5bff4938207604a14f2e38a9cf512
99-
# do not go beyond the below commit as the next one requires a more recent
100-
# docker which is in conflict with openshift/imagebuilder
101-
github.com/fsouza/go-dockerclient 29c1814d12c072344bb91aac5d2ff719db39c523
100+
github.com/fsouza/go-dockerclient v1.3.0
102101
github.com/openshift/imagebuilder 705fe9255c57f8505efb9723a9ac4082b67973bc
103102
github.com/ulikunitz/xz v0.5.5
104103
github.com/coreos/go-iptables v0.4.0

vendor/github.com/docker/docker/LICENSE

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/common.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/common_unix.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/common_windows.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/auth.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/blkiodev/blkio.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/docker/docker/api/types/client.go

Lines changed: 18 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)