diff --git a/security/capabilities/capabilities.go b/security/capabilities/capabilities.go index 7aef5fa6..e01464fd 100644 --- a/security/capabilities/capabilities.go +++ b/security/capabilities/capabilities.go @@ -1,8 +1,6 @@ package capabilities import ( - "os" - "github.com/syndtr/gocapability/capability" ) @@ -11,7 +9,7 @@ const allCapabilityTypes = capability.CAPS | capability.BOUNDS // DropBoundingSet drops the capability bounding set to those specified in the // container configuration. func DropBoundingSet(capabilities []string) error { - c, err := capability.NewPid(os.Getpid()) + c, err := capability.NewPid(0) if err != nil { return err } @@ -29,7 +27,7 @@ func DropBoundingSet(capabilities []string) error { // DropCapabilities drops all capabilities for the current process except those specified in the container configuration. func DropCapabilities(capList []string) error { - c, err := capability.NewPid(os.Getpid()) + c, err := capability.NewPid(0) if err != nil { return err } diff --git a/update-vendor.sh b/update-vendor.sh index 15bae185..6f61083c 100755 --- a/update-vendor.sh +++ b/update-vendor.sh @@ -43,6 +43,6 @@ clone() { clone git github.com/codegangsta/cli 1.1.0 clone git github.com/coreos/go-systemd v2 clone git github.com/godbus/dbus v2 -clone git github.com/syndtr/gocapability 3c85049eae +clone git github.com/syndtr/gocapability 1cf3ac4dc4 # intentionally not vendoring Docker itself... that'd be a circle :)