containerd/mount
Sebastiaan van Stijn 2af6db672e
switch back from golang.org/x/sys/execabs to os/exec (go1.19)
This is effectively a revert of 2ac9968401, which
switched from os/exec to the golang.org/x/sys/execabs package to mitigate
security issues (mainly on Windows) with lookups resolving to binaries in the
current directory.

from the go1.19 release notes https://go.dev/doc/go1.19#os-exec-path

> ## PATH lookups
>
> Command and LookPath no longer allow results from a PATH search to be found
> relative to the current directory. This removes a common source of security
> problems but may also break existing programs that depend on using, say,
> exec.Command("prog") to run a binary named prog (or, on Windows, prog.exe) in
> the current directory. See the os/exec package documentation for information
> about how best to update such programs.
>
> On Windows, Command and LookPath now respect the NoDefaultCurrentDirectoryInExePath
> environment variable, making it possible to disable the default implicit search
> of “.” in PATH lookups on Windows systems.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2023-11-02 21:15:40 +01:00
..
lookup_linux_test.go switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00
lookup_unix.go Fix usages of mountinfo.PrefixFilter 2023-09-10 15:14:26 +03:00
lookup_unsupported.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
losetup_linux_test.go test: use 'Autoclear: ture' in TestRwLoop and add Autoclear test 2023-11-01 11:49:12 +08:00
losetup_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
mount_freebsd.go switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00
mount_idmapped_linux_test.go idmapped: use pidfd to avoid pid reuse issue 2023-10-13 00:56:55 +08:00
mount_idmapped_linux.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
mount_linux_test.go switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00
mount_linux.go switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00
mount_test.go Add WithReadonlyTempMount to create readonly temporary mounts 2023-03-17 15:51:18 +00:00
mount_unix.go Fix usages of mountinfo.PrefixFilter 2023-09-10 15:14:26 +03:00
mount_unsupported.go Revert "Add support for mounts on Darwin" 2023-07-19 00:22:20 +09:00
mount_windows.go Move to use github.com/containerd/log 2023-09-22 07:53:23 -07:00
mount.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
mountinfo.go mount: mount.PID(), mount.Self(): change signature to return pointers 2021-01-08 17:31:53 +01:00
temp_unix.go Fix usages of mountinfo.PrefixFilter 2023-09-10 15:14:26 +03:00
temp_unsupported.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
temp.go Move to use github.com/containerd/log 2023-09-22 07:53:23 -07:00