Discover Packages
github.com/goodbaikin/containerd
pkg
cap
package
Version:
v1.7.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
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.