capabilities

package
v0.0.0-...-2081a44 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CAPS_TO_KEEP []capability.Cap
View Source
var CapabilitiesSupported bool = true

Functions

func Drop

func Drop(uid int, gid int) error

func DropAllCapabilities

func DropAllCapabilities() error

func DropNetBind

func DropNetBind() error

func FixLinuxPrivileges

func FixLinuxPrivileges(uid, gid string) error

func GetCaps

func GetCaps() string

func KeepCaps

func KeepCaps() error

func NeedFixLinuxPrivileges

func NeedFixLinuxPrivileges(uid, gid string) (bool, error)

func NoNewPriv

func NoNewPriv() error

func Predrop

func Predrop() (bool, error)

func Setgid

func Setgid(gid int)

func Setuid

func Setuid(uid int)

Types

type CapabilitiesQuery

type CapabilitiesQuery struct {
	// contains filtered or unexported fields
}

func NewCapabilitiesQuery

func NewCapabilitiesQuery() (*CapabilitiesQuery, error)

func (*CapabilitiesQuery) CanChangeUid

func (c *CapabilitiesQuery) CanChangeUid() bool

func (*CapabilitiesQuery) CanModifySecurebits

func (c *CapabilitiesQuery) CanModifySecurebits() bool

func (*CapabilitiesQuery) NeedDrop

func (c *CapabilitiesQuery) NeedDrop() bool

func (*CapabilitiesQuery) NeedMore

func (c *CapabilitiesQuery) NeedMore() bool

Jump to

Keyboard shortcuts

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