Affected by GO-2025-3829
and 5 other vulnerabilities
GO-2025-3829 : Moby firewalld reload removes bridge network isolation in github.com/docker/docker
GO-2026-4883 : Moby has an Off-by-one error in its plugin privilege validation in github.com/docker/docker
GO-2026-4887 : Moby has AuthZ plugin bypass when provided oversized request bodies in github.com/docker/docker
GO-2026-5617 : Docker: Race condition in docker cp allows bind mount redirection to host path in github.com/docker/docker
GO-2026-5668 : Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap in github.com/docker/docker
GO-2026-5746 : Docker: `PUT /containers/{id}/archive` executes container binary on the host in github.com/docker/docker
Discover Packages
github.com/docker/docker
pkg
reexec
package
Version:
v23.0.8+incompatible
Opens a new window with list of versions in this module.
Published: Oct 25, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2,507
Opens a new window with list of known importers.
README
README
¶
reexec
The reexec package facilitates the busybox style reexec of the docker binary that we require because
of the forking limitations of using Go. Handlers can be registered with a name and the argv 0 of
the exec of the binary will be used to find and execute custom init paths.
Expand ▾
Collapse ▴
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
Command returns *exec.Cmd which has Path as current binary. Also it setting
SysProcAttr.Pdeathsig to SIGTERM.
This will use the in-memory version (/proc/self/exe) of the current binary,
it is thus safe to delete or replace the on-disk binary (os.Args[0]).
Init is called as the first part of the exec process and returns true if an
initialization function was called.
func Register(name string , initializer func())
Register adds an initialization func under the specified name
Self returns the path to the current process's binary.
Returns "/proc/self/exe".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.