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
// +build linux
package aufs

View File

@@ -1,3 +1,4 @@
//go:build !linux || !cgo
// +build !linux !cgo
package btrfs

View File

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

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
//go:build solaris && cgo
// +build solaris,cgo
package graphdriver

View File

@@ -1,3 +1,4 @@
//go:build !linux && !windows && !freebsd && !solaris && !darwin
// +build !linux,!windows,!freebsd,!solaris,!darwin
package graphdriver

View File

@@ -6,6 +6,7 @@ package overlay
import (
"fmt"
"os"
"runtime"
"syscall"
"unsafe"
@@ -112,7 +113,14 @@ func createIDMappedMount(source, target string, pid int) error {
// createUsernsProcess forks the current process and creates a user namespace using the specified
// mappings. It returns the pid of the new process.
func createUsernsProcess(uidMaps []idtools.IDMap, gidMaps []idtools.IDMap) (int, func(), error) {
pid, _, err := syscall.Syscall6(uintptr(unix.SYS_CLONE), unix.CLONE_NEWUSER|uintptr(unix.SIGCHLD), 0, 0, 0, 0, 0)
var pid uintptr
var err syscall.Errno
if runtime.GOARCH == "s390x" {
pid, _, err = syscall.Syscall6(uintptr(unix.SYS_CLONE), 0, unix.CLONE_NEWUSER|uintptr(unix.SIGCHLD), 0, 0, 0, 0)
} else {
pid, _, err = syscall.Syscall6(uintptr(unix.SYS_CLONE), unix.CLONE_NEWUSER|uintptr(unix.SIGCHLD), 0, 0, 0, 0, 0)
}
if err != 0 {
return -1, nil, err
}

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package overlay

View File

@@ -1,3 +1,4 @@
//go:build !exclude_graphdriver_aufs && linux
// +build !exclude_graphdriver_aufs,linux
package register

View File

@@ -1,3 +1,4 @@
//go:build !exclude_graphdriver_btrfs && linux
// +build !exclude_graphdriver_btrfs,linux
package register

View File

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

View File

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

View File

@@ -1,3 +1,4 @@
//go:build (!exclude_graphdriver_zfs && linux) || (!exclude_graphdriver_zfs && freebsd) || solaris
// +build !exclude_graphdriver_zfs,linux !exclude_graphdriver_zfs,freebsd solaris
package register

View File

@@ -1,3 +1,4 @@
//go:build !linux
// +build !linux
package vfs // import "github.com/containers/storage/drivers/vfs"