Versions in this module Expand all Collapse all v0 v0.4.0 Nov 11, 2024 Changes in this version + func DropBound(caps ...Cap) error + func GetAmbient(c Cap) (bool, error) + func GetBound(c Cap) (bool, error) + func ResetAmbient() error + func SetAmbient(raise bool, caps ...Cap) error v0.3.0 Sep 25, 2024 Changes in this version type Cap + func LastCap() (Cap, error) + func ListKnown() []Cap + func ListSupported() ([]Cap, error) v0.2.0 Sep 16, 2024 Changes in this version + const AMBIENT + const AMBS + const BOUNDING + const BOUNDS + const CAPS + const CAP_AUDIT_CONTROL + const CAP_AUDIT_READ + const CAP_AUDIT_WRITE + const CAP_BLOCK_SUSPEND + const CAP_BPF + const CAP_CHECKPOINT_RESTORE + const CAP_CHOWN + const CAP_DAC_OVERRIDE + const CAP_DAC_READ_SEARCH + const CAP_FOWNER + const CAP_FSETID + const CAP_IPC_LOCK + const CAP_IPC_OWNER + const CAP_KILL + const CAP_LEASE + const CAP_LINUX_IMMUTABLE + const CAP_MAC_ADMIN + const CAP_MAC_OVERRIDE + const CAP_MKNOD + const CAP_NET_ADMIN + const CAP_NET_BIND_SERVICE + const CAP_NET_BROADCAST + const CAP_NET_RAW + const CAP_PERFMON + const CAP_SETFCAP + const CAP_SETGID + const CAP_SETPCAP + const CAP_SETUID + const CAP_SYSLOG + const CAP_SYS_ADMIN + const CAP_SYS_BOOT + const CAP_SYS_CHROOT + const CAP_SYS_MODULE + const CAP_SYS_NICE + const CAP_SYS_PACCT + const CAP_SYS_PTRACE + const CAP_SYS_RAWIO + const CAP_SYS_RESOURCE + const CAP_SYS_TIME + const CAP_SYS_TTY_CONFIG + const CAP_WAKE_ALARM + const EFFECTIVE + const INHERITABLE + const PERMITTED + type Cap int + func LastCap() (Cap, error) + func List() []Cap + func (c Cap) String() string + type CapType uint + func (c CapType) String() string + type Capabilities interface + Apply func(kind CapType) error + Clear func(kind CapType) + Empty func(which CapType) bool + Fill func(kind CapType) + Full func(which CapType) bool + Get func(which CapType, what Cap) bool + Load func() error + Set func(which CapType, caps ...Cap) + String func() string + StringCap func(which CapType) string + Unset func(which CapType, caps ...Cap) + func NewFile(path string) (Capabilities, error) + func NewFile2(path string) (Capabilities, error) + func NewPid(pid int) (Capabilities, error) + func NewPid2(pid int) (Capabilities, error)