Affected by GO-2022-0344
and 13 other vulnerabilities
GO-2022-0344: containerd CRI plugin: Insecure handling of image volumes in github.com/containerd/containerd
GO-2022-0360: Ambiguous OCI manifest parsing in github.com/containerd/containerd
GO-2022-0482: containerd CRI plugin: Host memory exhaustion through ExecSync in github.com/containerd/containerd
GO-2022-0784: containerd-shim API Exposed to Host Network Containers in github.com/containerd/containerd
GO-2022-0803: containerd v1.2.x can be coerced into leaking credentials during image pull in github.com/containerd/containerd
GO-2022-0921: Archive package allows chmod of file outside of unpack target directory in github.com/containerd/containerd
GO-2022-0938: Insufficiently restricted permissions on plugin directories in github.com/containerd/containerd
GO-2022-1147: containerd CRI stream server vulnerable to host memory exhaustion via terminal in github.com/containerd/containerd
GO-2025-3528: containerd has an integer overflow in User ID handling in github.com/containerd/containerd
GO-2025-4100: containerd affected by a local privilege escalation via wide permissions on CRI directory in github.com/containerd/containerd
GO-2025-4108: containerd CRI server: Host memory exhaustion through Attach goroutine leak in github.com/containerd/containerd
GO-2026-5064: containerd CRI checkpoint restore CDI annotation smuggling in github.com/containerd/containerd
GO-2026-5338: containerd: CRI checkpoint import allows local image tag poisoning in github.com/containerd/containerd
GO-2026-5622: Arbitrary host CRI log file read via symlink following in CRI checkpoint restore in github.com/containerd/containerd

The highest tagged major version is
v2.
package
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Oct 24, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 28
Opens a new window with list of imports.
Imported by: 716
Opens a new window with list of known importers.
Documentation
¶
- Variables
-
func AnonDialer(address string, timeout time.Duration) (net.Conn, error)
-
func BinaryName(runtime string) string
-
func Command(ctx context.Context, runtime, containerdAddress, path string, ...) (*exec.Cmd, error)
-
func Connect(address string, d func(string, time.Duration) (net.Conn, error)) (net.Conn, error)
-
func NewSocket(address string) (*net.UnixListener, error)
-
func Reap() error
-
func Run(id string, initFunc Init)
-
func SetScore(pid int) error
-
func SocketAddress(ctx context.Context, id string) (string, error)
-
func WriteAddress(path, address string) error
-
func WritePidFile(path string, pid int) error
-
type Client
-
type Init
-
type Monitor
-
type Opts
-
type OptsKey
-
type Shim
Default is the default monitor initialized for the package
ErrNoSuchProcess is returned when the process no longer exists
AnonDialer returns a dialer for an abstract socket
BinaryName returns the shim binary name from the runtime name,
empty string returns means runtime name is invalid
Command returns the shim command with the provided args and configuration
Connect to the provided address
NewSocket returns a new socket
Reap should be called when the process receives an SIGCHLD. Reap will reap
all exited processes and close their wait channels
Run initializes and runs a shim server
SetScore sets the oom score for a process
SocketAddress returns an abstract socket address
WriteAddress writes a address file atomically
WritePidFile writes a pid file atomically
Client for a shim server
NewShimClient creates a new shim server client
Init func for the creation of a shim server
Monitor monitors the underlying system for process status changes
Start starts the command a registers the process with the reaper
Subscribe to process exit changes
Unsubscribe to process exit changes
Wait blocks until a process is signal as dead.
User should rely on the value of the exit status to determine if the
command was successful or not.
Opts are context options associated with the shim invocation.
OptsKey is the context key for the Opts value.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.