capabilities

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KnownCapabilities added in v1.1.0

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

func (c *Caps) ApplyBoundingSet() error

ApplyBoundingSet sets the capability bounding set to those specified in the whitelist.

func (*Caps) ApplyCaps

func (c *Caps) ApplyCaps() error

Apply sets all the capabilities for the current process in the config.

Jump to

Keyboard shortcuts

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