Documentation ¶
Overview ¶
Package cap provides Linux capability utility
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Current ¶
Current returns the list of the effective and the known caps of the current process.
The result is like []string{"CAP_SYS_ADMIN", ...}.
func FromBitmap ¶
FromBitmap parses an uint64 bitmap into string slice like []{"CAP_SYS_ADMIN", ...}.
Unknown cap numbers are returned as []int.
func FromNumber ¶
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.
Types ¶
Click to show internal directories.
Click to hide internal directories.