containerd/cmd/ctr/commands
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
..
containers Move client to subpackage 2023-11-01 10:37:00 -07:00
content switch back from golang.org/x/sys/execabs to os/exec (go1.19) 2023-11-02 21:15:40 +01:00
deprecations Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
events Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
images Move client to subpackage 2023-11-01 10:37:00 -07:00
info Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
install Move client to subpackage 2023-11-01 10:37:00 -07:00
leases Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
namespaces Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
oci Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
plugins Switch to github.com/containerd/plugin 2023-11-01 23:01:42 -07:00
pprof Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
run Move client to subpackage 2023-11-01 10:37:00 -07:00
sandboxes Move client to subpackage 2023-11-01 10:37:00 -07:00
shim Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
snapshots Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
tasks Move client to subpackage 2023-11-01 10:37:00 -07:00
version Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
client.go Rename opt to avoid stutter 2023-11-01 10:39:54 -07:00
cni.go Move client to subpackage 2023-11-01 10:37:00 -07:00
commands_unix.go keep the uppercase letter for flag info 2023-02-06 16:37:24 +08:00
commands_windows.go keep the uppercase letter for flag info 2023-02-06 16:37:24 +08:00
commands.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
resolver.go Update go module to github.com/containerd/containerd/v2 2023-10-29 20:52:21 -07:00
signals_linux.go Ignore SIGURG signals in signal forwarder 2020-09-04 16:19:31 -07:00
signals_notlinux.go Cleanup build constraints 2022-12-08 09:36:20 -08:00
signals.go Move client to subpackage 2023-11-01 10:37:00 -07:00