From e5b773ef5032d82af9b1e2ad39ece8e21f03d0f5 Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Fri, 28 Feb 2020 11:40:42 -0500 Subject: [PATCH] Bump github.com/opencontainers/selinux to v1.3.3 To pick up a fix for a regression: https://github.com/opencontainers/selinux/pull/71/commits/4e413ab11410afc49e426ed5e21dc41454f15a41 Signed-off-by: Davanum Srinivas --- go.mod | 2 +- go.sum | 2 ++ .../opencontainers/selinux/go-selinux/selinux_linux.go | 2 +- vendor/modules.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7a0bdd91..985e31a8 100644 --- a/go.mod +++ b/go.mod @@ -61,7 +61,7 @@ require ( github.com/opencontainers/image-spec v1.0.1 // indirect github.com/opencontainers/runc v1.0.0-rc8.0.20190906011214-a6606a7ae9d9 github.com/opencontainers/runtime-spec v1.0.1 - github.com/opencontainers/selinux v1.3.2 // indirect + github.com/opencontainers/selinux v1.3.3 // indirect github.com/pborman/uuid v0.0.0-20150824212802-cccd189d45f7 // indirect github.com/pkg/errors v0.8.1 github.com/pquerna/ffjson v0.0.0-20171002144729-d49c2bc1aa13 // indirect diff --git a/go.sum b/go.sum index 2dfe6d75..3225dbb5 100644 --- a/go.sum +++ b/go.sum @@ -221,6 +221,8 @@ github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52 h1:B8hYj3 github.com/opencontainers/selinux v1.3.1-0.20190929122143-5215b1806f52/go.mod h1:+BLncwf63G4dgOzykXAxcmnFlUaOlkDdmw/CqsW6pjs= github.com/opencontainers/selinux v1.3.2 h1:DR4lL9SYVjgcTZKEZIncvDU06fKSc/eygjmNGOA3E1s= github.com/opencontainers/selinux v1.3.2/go.mod h1:yTcKuYAh6R95iDpefGLQaPaRwJFwyzAJufJyiTt7s0g= +github.com/opencontainers/selinux v1.3.3 h1:RX0wAeqtvVSYQcr017X3pFXPkLEtB6V4NjRD7gVQgg4= +github.com/opencontainers/selinux v1.3.3/go.mod h1:yTcKuYAh6R95iDpefGLQaPaRwJFwyzAJufJyiTt7s0g= github.com/pborman/uuid v0.0.0-20150824212802-cccd189d45f7 h1:7Nb5cK6zZrR39niF9np62PLldWkL0R0XJGDbmsRQ96E= github.com/pborman/uuid v0.0.0-20150824212802-cccd189d45f7/go.mod h1:VyrYX9gd7irzKovcSS6BIIEwPRkP2Wm2m9ufcdFSJ34= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= diff --git a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go index 0e97a077..c51ddfda 100644 --- a/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go +++ b/vendor/github.com/opencontainers/selinux/go-selinux/selinux_linux.go @@ -115,7 +115,7 @@ func verifySELinuxfsMount(mnt string) bool { return false } - if buf.Type != unix.SELINUX_MAGIC { + if uint32(buf.Type) != uint32(unix.SELINUX_MAGIC) { return false } if (buf.Flags & stRdOnly) != 0 { diff --git a/vendor/modules.txt b/vendor/modules.txt index 446432dd..437889da 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -189,7 +189,7 @@ github.com/opencontainers/runc/libcontainer/user github.com/opencontainers/runc/libcontainer/utils # github.com/opencontainers/runtime-spec v1.0.1 github.com/opencontainers/runtime-spec/specs-go -# github.com/opencontainers/selinux v1.3.2 +# github.com/opencontainers/selinux v1.3.3 github.com/opencontainers/selinux/go-selinux github.com/opencontainers/selinux/go-selinux/label # github.com/pkg/errors v0.8.1