aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/opencontainers/runc
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-03-29 07:31:23 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-04-08 09:02:52 -0400
commitdc17195bd9d1027b19c3e7f0975f17f4ebda408a (patch)
tree223a7caf22ee81fbd6a01d166c0821db4d413616 /vendor/github.com/opencontainers/runc
parentf838333b7e6fae09f3ee9116b84c6e6482367298 (diff)
downloadpodman-dc17195bd9d1027b19c3e7f0975f17f4ebda408a.tar.gz
podman-dc17195bd9d1027b19c3e7f0975f17f4ebda408a.tar.bz2
podman-dc17195bd9d1027b19c3e7f0975f17f4ebda408a.zip
Vendor in new opencontainers/selinux
Also update vendor of containers/common,buildah,storage,image Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2069586 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'vendor/github.com/opencontainers/runc')
-rw-r--r--vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
index 13ebf52ab..b32af4ee5 100644
--- a/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
+++ b/vendor/github.com/opencontainers/runc/libcontainer/cgroups/utils.go
@@ -55,12 +55,12 @@ func IsCgroup2HybridMode() bool {
var st unix.Statfs_t
err := unix.Statfs(hybridMountpoint, &st)
if err != nil {
- if os.IsNotExist(err) {
- // ignore the "not found" error
- isHybrid = false
- return
+ isHybrid = false
+ if !os.IsNotExist(err) {
+ // Report unexpected errors.
+ logrus.WithError(err).Debugf("statfs(%q) failed", hybridMountpoint)
}
- panic(fmt.Sprintf("cannot statfs cgroup root: %s", err))
+ return
}
isHybrid = st.Type == unix.CGROUP2_SUPER_MAGIC
})