Affected by GO-2022-0482
and 1 other vulnerabilities
GO-2022-0482: containerd CRI plugin: Host memory exhaustion through ExecSync in github.com/containerd/containerd
GO-2022-1147: containerd CRI stream server vulnerable to host memory exhaustion via terminal in github.com/containerd/containerd
The highest tagged major version is
v2.
package
Version:
v1.6.4
Opens a new window with list of versions in this module.
Published: May 3, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 68
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.