Documentation ¶
Index ¶
- func Initialize(bypass bool) error
- func ListAvailCaps() []string
- func ReqByString(values ...string) ([]cap.Value, error)
- type Capabilities
- func (c *Capabilities) BaseRingAdd(values ...cap.Value) error
- func (c *Capabilities) BaseRingRemove(values ...cap.Value) error
- func (c *Capabilities) EBPF(cb func() error) error
- func (c *Capabilities) EBPFRingAdd(values ...cap.Value) error
- func (c *Capabilities) EBPFRingRemove(values ...cap.Value) error
- func (c *Capabilities) Full(cb func() error) error
- func (c *Capabilities) Specific(cb func() error, values ...cap.Value) error
- type RingType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶ added in v0.9.2
Initialize initializes the "caps" instance (singleton).
func ListAvailCaps ¶ added in v0.9.0
func ListAvailCaps() []string
ListAvailCaps lists available capabilities in the running environment
Types ¶
type Capabilities ¶ added in v0.9.0
type Capabilities struct {
// contains filtered or unexported fields
}
func GetInstance ¶ added in v0.9.2
func GetInstance() *Capabilities
GetInstance returns current "caps" instance. It initializes capabilities if needed, bypassing the privilege dropping by default.
func (*Capabilities) BaseRingAdd ¶ added in v0.14.0
func (c *Capabilities) BaseRingAdd(values ...cap.Value) error
func (*Capabilities) BaseRingRemove ¶ added in v0.14.0
func (c *Capabilities) BaseRingRemove(values ...cap.Value) error
func (*Capabilities) EBPF ¶ added in v0.14.0
func (c *Capabilities) EBPF(cb func() error) error
func (*Capabilities) EBPFRingAdd ¶ added in v0.14.0
func (c *Capabilities) EBPFRingAdd(values ...cap.Value) error
func (*Capabilities) EBPFRingRemove ¶ added in v0.14.0
func (c *Capabilities) EBPFRingRemove(values ...cap.Value) error
func (*Capabilities) Full ¶ added in v0.14.0
func (c *Capabilities) Full(cb func() error) error
Click to show internal directories.
Click to hide internal directories.