Updates runc to b2567b37d7b75eb4cf325b77297b140ea686ce8f which removes
some cross-repo dependencies.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
| ... | ... |
@@ -3,7 +3,7 @@ |
| 3 | 3 |
TOMLV_COMMIT=9baf8a8a9f2ed20a8e54160840c492f937eeaf9a |
| 4 | 4 |
|
| 5 | 5 |
# When updating RUNC_COMMIT, also update runc in vendor.conf accordingly |
| 6 |
-RUNC_COMMIT=0351df1c5a66838d0c392b4ac4cf9450de844e2d |
|
| 6 |
+RUNC_COMMIT=b2567b37d7b75eb4cf325b77297b140ea686ce8f |
|
| 7 | 7 |
CONTAINERD_COMMIT=v1.0.0-beta.3 |
| 8 | 8 |
TINI_COMMIT=949e6facb77383876aeff8a6944dde66b3089574 |
| 9 | 9 |
LIBNETWORK_COMMIT=7b2b1feb1de4817d522cc372af149ff48d25028e |
| ... | ... |
@@ -65,7 +65,7 @@ github.com/pborman/uuid v1.0 |
| 65 | 65 |
google.golang.org/grpc v1.3.0 |
| 66 | 66 |
|
| 67 | 67 |
# When updating, also update RUNC_COMMIT in hack/dockerfile/binaries-commits accordingly |
| 68 |
-github.com/opencontainers/runc 0351df1c5a66838d0c392b4ac4cf9450de844e2d |
|
| 68 |
+github.com/opencontainers/runc b2567b37d7b75eb4cf325b77297b140ea686ce8f |
|
| 69 | 69 |
github.com/opencontainers/runtime-spec v1.0.0 |
| 70 | 70 |
github.com/opencontainers/image-spec v1.0.0 |
| 71 | 71 |
github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0 |
| ... | ... |
@@ -30,8 +30,8 @@ func DeviceFromPath(path, permissions string) (*configs.Device, error) {
|
| 30 | 30 |
} |
| 31 | 31 |
|
| 32 | 32 |
var ( |
| 33 |
- devNumber = int(stat.Rdev) |
|
| 34 |
- major = Major(devNumber) |
|
| 33 |
+ devNumber = stat.Rdev |
|
| 34 |
+ major = unix.Major(devNumber) |
|
| 35 | 35 |
) |
| 36 | 36 |
if major == 0 {
|
| 37 | 37 |
return nil, ErrNotADevice |
| ... | ... |
@@ -50,8 +50,8 @@ func DeviceFromPath(path, permissions string) (*configs.Device, error) {
|
| 50 | 50 |
return &configs.Device{
|
| 51 | 51 |
Type: devType, |
| 52 | 52 |
Path: path, |
| 53 |
- Major: major, |
|
| 54 |
- Minor: Minor(devNumber), |
|
| 53 |
+ Major: int64(major), |
|
| 54 |
+ Minor: int64(unix.Minor(devNumber)), |
|
| 55 | 55 |
Permissions: permissions, |
| 56 | 56 |
FileMode: os.FileMode(mode), |
| 57 | 57 |
Uid: stat.Uid, |
| 58 | 58 |
deleted file mode 100644 |
| ... | ... |
@@ -1,24 +0,0 @@ |
| 1 |
-// +build linux freebsd |
|
| 2 |
- |
|
| 3 |
-package devices |
|
| 4 |
- |
|
| 5 |
-/* |
|
| 6 |
- |
|
| 7 |
-This code provides support for manipulating linux device numbers. It should be replaced by normal syscall functions once http://code.google.com/p/go/issues/detail?id=8106 is solved. |
|
| 8 |
- |
|
| 9 |
-You can read what they are here: |
|
| 10 |
- |
|
| 11 |
- - http://www.makelinux.net/ldd3/chp-3-sect-2 |
|
| 12 |
- - http://www.linux-tutorial.info/modules.php?name=MContent&pageid=94 |
|
| 13 |
- |
|
| 14 |
-Note! These are NOT the same as the MAJOR(dev_t device);, MINOR(dev_t device); and MKDEV(int major, int minor); functions as defined in <linux/kdev_t.h> as the representation of device numbers used by go is different than the one used internally to the kernel! - https://github.com/torvalds/linux/blob/master/include/linux/kdev_t.h#L9 |
|
| 15 |
- |
|
| 16 |
-*/ |
|
| 17 |
- |
|
| 18 |
-func Major(devNumber int) int64 {
|
|
| 19 |
- return int64((devNumber >> 8) & 0xfff) |
|
| 20 |
-} |
|
| 21 |
- |
|
| 22 |
-func Minor(devNumber int) int64 {
|
|
| 23 |
- return int64((devNumber & 0xff) | ((devNumber >> 12) & 0xfff00)) |
|
| 24 |
-} |
| 25 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,26 @@ |
| 0 |
+// +build linux |
|
| 1 |
+// +build 386 arm |
|
| 2 |
+ |
|
| 3 |
+package system |
|
| 4 |
+ |
|
| 5 |
+import ( |
|
| 6 |
+ "golang.org/x/sys/unix" |
|
| 7 |
+) |
|
| 8 |
+ |
|
| 9 |
+// Setuid sets the uid of the calling thread to the specified uid. |
|
| 10 |
+func Setuid(uid int) (err error) {
|
|
| 11 |
+ _, _, e1 := unix.RawSyscall(unix.SYS_SETUID32, uintptr(uid), 0, 0) |
|
| 12 |
+ if e1 != 0 {
|
|
| 13 |
+ err = e1 |
|
| 14 |
+ } |
|
| 15 |
+ return |
|
| 16 |
+} |
|
| 17 |
+ |
|
| 18 |
+// Setgid sets the gid of the calling thread to the specified gid. |
|
| 19 |
+func Setgid(gid int) (err error) {
|
|
| 20 |
+ _, _, e1 := unix.RawSyscall(unix.SYS_SETGID32, uintptr(gid), 0, 0) |
|
| 21 |
+ if e1 != 0 {
|
|
| 22 |
+ err = e1 |
|
| 23 |
+ } |
|
| 24 |
+ return |
|
| 25 |
+} |
| 0 | 26 |
deleted file mode 100644 |
| ... | ... |
@@ -1,25 +0,0 @@ |
| 1 |
-// +build linux,386 |
|
| 2 |
- |
|
| 3 |
-package system |
|
| 4 |
- |
|
| 5 |
-import ( |
|
| 6 |
- "golang.org/x/sys/unix" |
|
| 7 |
-) |
|
| 8 |
- |
|
| 9 |
-// Setuid sets the uid of the calling thread to the specified uid. |
|
| 10 |
-func Setuid(uid int) (err error) {
|
|
| 11 |
- _, _, e1 := unix.RawSyscall(unix.SYS_SETUID32, uintptr(uid), 0, 0) |
|
| 12 |
- if e1 != 0 {
|
|
| 13 |
- err = e1 |
|
| 14 |
- } |
|
| 15 |
- return |
|
| 16 |
-} |
|
| 17 |
- |
|
| 18 |
-// Setgid sets the gid of the calling thread to the specified gid. |
|
| 19 |
-func Setgid(gid int) (err error) {
|
|
| 20 |
- _, _, e1 := unix.RawSyscall(unix.SYS_SETGID32, uintptr(gid), 0, 0) |
|
| 21 |
- if e1 != 0 {
|
|
| 22 |
- err = e1 |
|
| 23 |
- } |
|
| 24 |
- return |
|
| 25 |
-} |
| 5 | 6 |
deleted file mode 100644 |
| ... | ... |
@@ -1,25 +0,0 @@ |
| 1 |
-// +build linux,arm |
|
| 2 |
- |
|
| 3 |
-package system |
|
| 4 |
- |
|
| 5 |
-import ( |
|
| 6 |
- "golang.org/x/sys/unix" |
|
| 7 |
-) |
|
| 8 |
- |
|
| 9 |
-// Setuid sets the uid of the calling thread to the specified uid. |
|
| 10 |
-func Setuid(uid int) (err error) {
|
|
| 11 |
- _, _, e1 := unix.RawSyscall(unix.SYS_SETUID32, uintptr(uid), 0, 0) |
|
| 12 |
- if e1 != 0 {
|
|
| 13 |
- err = e1 |
|
| 14 |
- } |
|
| 15 |
- return |
|
| 16 |
-} |
|
| 17 |
- |
|
| 18 |
-// Setgid sets the gid of the calling thread to the specified gid. |
|
| 19 |
-func Setgid(gid int) (err error) {
|
|
| 20 |
- _, _, e1 := unix.RawSyscall(unix.SYS_SETGID32, uintptr(gid), 0, 0) |
|
| 21 |
- if e1 != 0 {
|
|
| 22 |
- err = e1 |
|
| 23 |
- } |
|
| 24 |
- return |
|
| 25 |
-} |
| ... | ... |
@@ -5,7 +5,7 @@ github.com/opencontainers/runtime-spec v1.0.0 |
| 5 | 5 |
# Core libcontainer functionality. |
| 6 | 6 |
github.com/mrunalp/fileutils ed869b029674c0e9ce4c0dfa781405c2d9946d08 |
| 7 | 7 |
github.com/opencontainers/selinux v1.0.0-rc1 |
| 8 |
-github.com/seccomp/libseccomp-golang 32f571b70023028bd57d9288c20efbcb237f3ce0 |
|
| 8 |
+github.com/seccomp/libseccomp-golang 84e90a91acea0f4e51e62bc1a75de18b1fc0790f |
|
| 9 | 9 |
github.com/sirupsen/logrus a3f95b5c423586578a4e099b11a46c2479628cac |
| 10 | 10 |
github.com/syndtr/gocapability db04d3cc01c8b54962a58ec7e491717d06cfcc16 |
| 11 | 11 |
github.com/vishvananda/netlink 1e2e08e8a2dcdacaae3f14ac44c5cfa31361f270 |
| ... | ... |
@@ -15,7 +15,7 @@ github.com/coreos/pkg v3 |
| 15 | 15 |
github.com/godbus/dbus v3 |
| 16 | 16 |
github.com/golang/protobuf 18c9bb3261723cd5401db4d0c9fbc5c3b6c70fe8 |
| 17 | 17 |
# Command-line interface. |
| 18 |
-github.com/docker/docker 0f5c9d301b9b1cca66b3ea0f9dec3b5317d3686d |
|
| 18 |
+github.com/cyphar/filepath-securejoin v0.2.1 |
|
| 19 | 19 |
github.com/docker/go-units v0.2.0 |
| 20 | 20 |
github.com/urfave/cli d53eb991652b1d438abdd34ce4bfa3ef1539108e |
| 21 | 21 |
golang.org/x/sys 7ddbeae9ae08c6a06a59597f0c9edbc5ff2444ce https://github.com/golang/sys |