Skip to content

Commit

Permalink
Merge pull request #5907 from dtrudg/37umoci047
Browse files Browse the repository at this point in the history
Update opencontainers/umoci to v0.4.7 (release-3.7)
  • Loading branch information
dtrudg authored Apr 6, 2021
2 parents 47d3b5d + 269d0d8 commit 6e59f31
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 78 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ _With the release of `v3.0.0`, we're introducing a new changelog format in an at

_The old changelog can be found in the `release-2.6` branch_

# v3.7.3 - [2021-04-06]

## Security Related Fixes

- [CVE-2021-29136](https://github.com/opencontainers/umoci/security/advisories/GHSA-9m95-8hx6-7p9v):
A dependency used by Singularity to extract docker/OCI image layers
can be tricked into modifying host files by creating a malicious
layer that has a symlink with the name "." (or "/"), when running
as root. This vulnerability affects a `singularity build` or
`singularity pull` as root, from a docker or OCI source.


# v3.7.2 - [2021-03-09]

## Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ as shown above. Then download the latest
and use it to install the RPM like this:

```
$ export VERSION=3.7.2 # this is the singularity version, change as you need
$ export VERSION=3.7.3 # this is the singularity version, change as you need
$ wget https://github.com/sylabs/singularity/releases/download/v${VERSION}/singularity-${VERSION}.tar.gz && \
rpmbuild -tb singularity-${VERSION}.tar.gz && \
Expand All @@ -149,7 +149,7 @@ tarball and use it to install Singularity:
$ cd $GOPATH/src/github.com/sylabs/singularity && \
./mconfig && \
make -C builddir rpm && \
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/singularity-3.7.2*.x86_64.rpm # or whatever version you built
sudo rpm -ivh ~/rpmbuild/RPMS/x86_64/singularity-3.7.3*.x86_64.rpm # or whatever version you built
```

To build an rpm with an alternative install prefix set RPMPREFIX on the
Expand Down
3 changes: 2 additions & 1 deletion e2e/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"runtime"
"testing"

"github.com/opencontainers/runtime-spec/specs-go"
"github.com/pkg/errors"
uuid "github.com/satori/go.uuid"
"github.com/sylabs/singularity/e2e/internal/e2e"
Expand All @@ -33,7 +34,7 @@ func (c *ctx) checkOciState(t *testing.T, containerID, state string) {
t.Errorf("can't unmarshal oci state output: %+v", err)
return
}
if s.Status != state {
if s.Status != specs.ContainerState(state) {
t.Errorf("bad container state returned, got %s instead of %s", s.Status, state)
}
}
Expand Down
18 changes: 12 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module github.com/sylabs/singularity
go 1.13

require (
github.com/AdamKorcz/go-fuzz-headers v0.0.0-20210319161527-f761c2329661 // indirect
github.com/Netflix/go-expect v0.0.0-20190729225929-0e00d9168667
github.com/adigunhammedolalekan/registry-auth v0.0.0-20200730122110-8cde180a3a60
github.com/alexflint/go-filemutex v0.0.0-20171028004239-d358565f3c3f // indirect
Expand All @@ -23,37 +24,42 @@ require (
github.com/godbus/dbus v4.1.0+incompatible // indirect
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gorilla/handlers v1.4.0 // indirect
github.com/gorilla/websocket v1.4.2
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/klauspost/compress v1.11.13 // indirect
github.com/kr/pty v1.1.8
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.0.2-0.20191218002246-9ea04d1f37d7
github.com/opencontainers/runtime-spec v1.0.3-0.20200710190001-3e4195d92445
github.com/opencontainers/image-spec v1.0.2-0.20210331164927-859973e32cca
github.com/opencontainers/runc v1.0.0-rc93 // indirect
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
github.com/opencontainers/selinux v1.8.0
github.com/opencontainers/umoci v0.4.6
github.com/opencontainers/umoci v0.4.7
github.com/pelletier/go-toml v1.8.1
github.com/pkg/errors v0.9.1
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/satori/go.uuid v1.2.0
github.com/seccomp/containers-golang v0.6.0
github.com/seccomp/libseccomp-golang v0.9.1
github.com/sirupsen/logrus v1.8.1 // indirect
github.com/spf13/cobra v1.1.3
github.com/spf13/pflag v1.0.5
github.com/sylabs/json-resp v0.7.0
github.com/sylabs/scs-build-client v0.1.5
github.com/sylabs/scs-key-client v0.6.0
github.com/sylabs/scs-library-client v1.0.3
github.com/sylabs/sif v1.2.1
github.com/urfave/cli v1.22.5 // indirect
github.com/vbauerster/mpb/v4 v4.12.2
github.com/vbauerster/mpb/v6 v6.0.2
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/yvasiyarov/go-metrics v0.0.0-20150112132944-c25f46c4b940 // indirect
github.com/yvasiyarov/gorelic v0.0.6 // indirect
github.com/yvasiyarov/newrelic_platform_go v0.0.0-20160601141957-9c099fbc30e9 // indirect
go.opencensus.io v0.22.2 // indirect
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad
golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
gopkg.in/yaml.v2 v2.4.0
gotest.tools/v3 v3.0.3
Expand Down
Loading

0 comments on commit 6e59f31

Please sign in to comment.