Update vendor of containers/(image, storage, common)

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2022-11-04 08:58:12 -04:00
parent 5aa32e45ad
commit 571833d562
108 changed files with 584 additions and 258 deletions

View File

@@ -1,3 +1,4 @@
//go:build linux && cgo
// +build linux,cgo
package unshare

View File

@@ -1,3 +1,4 @@
//go:build linux && !cgo
// +build linux,!cgo
package unshare

View File

@@ -1,3 +1,4 @@
//go:build darwin
// +build darwin
package unshare

View File

@@ -1,3 +1,4 @@
//go:build linux && cgo && gccgo
// +build linux,cgo,gccgo
package unshare

View File

@@ -465,7 +465,7 @@ func bailOnError(err error, format string, a ...interface{}) { // nolint: golint
// MaybeReexecUsingUserNamespace re-exec the process in a new namespace
func MaybeReexecUsingUserNamespace(evenForRoot bool) {
// If we've already been through this once, no need to try again.
if os.Geteuid() == 0 && IsRootless() {
if os.Geteuid() == 0 && GetRootlessUID() > 0 {
return
}