func KnownCapabilities() []string
KnownCapabilities returns the list of the known capabilities. Used by `runc features`.
Caps holds the capabilities for a container.
type Caps struct {
// contains filtered or unexported fields
}
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 (c *Caps) ApplyBoundingSet() error
ApplyBoundingSet sets the capability bounding set to those specified in the whitelist.
func (c *Caps) ApplyCaps() error
Apply sets all the capabilities for the current process in the config.