Documentation ¶
Overview ¶
Package caps implements a subset of Linux capabilities handling relevant in the context of authoring container images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileCaps ¶
type FileCaps struct {
// contains filtered or unexported fields
}
FileCaps encodes Linux file capabilities
func NewFileCaps ¶
NewFileCaps produces file capabilities object from a list of string terms. A term is either a single capability name (added as permitted) or a cap_from_text(3) clause.
func (*FileCaps) ToXattrBytes ¶
ToXattrBytes encodes capabilities in the format of security.capability extended filesystem attribute.
type Flags ¶
type Flags uint32
Flags alter certain aspects of capabilities handling
const ( // FlagEffective causes all of the new permitted capabilities to be // also raised in the effective set diring execve(2) FlagEffective Flags = 1 )
type Mask ¶
type Mask uint64
Mask captures a set of Linux capabilities
Click to show internal directories.
Click to hide internal directories.