Affected by GO-2026-5064
and 2 other vulnerabilities
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.7.33
Opens a new window with list of versions in this module.
Published: Jun 18, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 73
Opens a new window with list of known importers.
Documentation
¶
Package cap provides Linux capability utility
Current returns the list of the effective and the known caps of
the current process.
The result is like []string{"CAP_SYS_ADMIN", ...}.
FromBitmap parses an uint64 bitmap into string slice like
[]{"CAP_SYS_ADMIN", ...}.
Unknown cap numbers are returned as []int.
FromNumber returns a cap string like "CAP_SYS_ADMIN"
that corresponds to the given number like 21.
FromNumber returns an empty string for unknown cap number.
Known returns the known cap strings of the latest kernel.
The current latest kernel is 5.9.
ParseProcPIDStatus returns uint64 bitmap value from /proc/<PID>/status file
Type is the type of capability
const (
Effective Type = 1 << iota
Permitted
Inheritable
Bounding
Ambient
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.