package capabilities
import "github.com/opencontainers/runc/libcontainer/capabilities"
Index ¶
Functions ¶
func KnownCapabilities ¶
func KnownCapabilities() []string
KnownCapabilities returns the list of the known capabilities. Used by `runc features`.
Types ¶
type Caps ¶
type Caps struct {
// contains filtered or unexported fields
}
Caps holds the capabilities for a container.
func New ¶
func New(capConfig *configs.Capabilities) (*Caps, error)
New creates a new Caps from the given Capabilities config. Unknown Capabilities or Capabilities that are unavailable in the current environment are ignored, printing a warning instead.
func (*Caps) ApplyBoundingSet ¶
ApplyBoundingSet sets the capability bounding set to those specified in the whitelist.
func (*Caps) ApplyCaps ¶
Apply sets all the capabilities for the current process in the config.
Source Files ¶
- Version
- v1.2.6 (latest)
- Published
- Mar 14, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 hours ago –
Tools for package owners.