Affected by GO-2022-0278
and 6 other vulnerabilities
GO-2022-0278: Unprivileged pod using `hostPath` can side-step active LSM when it is SELinux in github.com/containerd/containerd
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-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
The highest tagged major version is
v2.
package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: May 3, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 69
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", ...}.
The result does not contain caps that are not recognized by
the "github.com/syndtr/gocapability" library.
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.