Affected by GO-2022-1107
and 6 other vulnerabilities
GO-2022-1107 : Container build can leak any path on the host into the container in github.com/docker/docker
GO-2023-1699 : Docker Swarm encrypted overlay network may be unauthenticated in github.com/docker/docker
GO-2023-1700 : Docker Swarm encrypted overlay network traffic may be unencrypted in github.com/docker/docker
GO-2023-1701 : Docker Swarm encrypted overlay network with a single endpoint is unauthenticated in github.com/docker/docker
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
Discover Packages
github.com/docker/docker
pkg
reexec
package
Version:
v20.10.19+incompatible
Opens a new window with list of versions in this module.
Published: Oct 6, 2022
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.