capabilities

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package capabilities provides a mapping from common kernel bit masks to the alphanumerical representation of kernel capabilities. See capabilities(7) for additional information.

Index

Constants

This section is empty.

Variables

View Source
var (

	// FullCAPs represents the value of a bitmask with a full capability
	// set.
	FullCAPs = uint64(0x1FFFFFFFFFF)
)

Functions

func TranslateMask

func TranslateMask(mask uint64) []string

TranslateMask iterates over mask and returns a slice of corresponding capabilities. If a bit is out of range of known capabilities, it is set as "unknown" to catch potential regressions when new capabilities are added to the kernel.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL