Documentation ¶
Index ¶
- func ClearKeepCaps() error
- func Execv(cmd string, args []string, env []string) error
- func GetClockTicks() int
- func GetProcessStartTime(pid int) (string, error)
- func Lgetxattr(path string, attr string) ([]byte, error)
- func Llistxattr(path string, dest []byte) (size int, err error)
- func Lsetxattr(path string, attr string, data []byte, flags int) error
- func Prctl(option int, arg2, arg3, arg4, arg5 uintptr) (err error)
- func RunningInUserNS() bool
- func SetKeepCaps() error
- func SetParentDeathSignal(sig uintptr) error
- func Setctty() error
- func Setgid(gid int) (err error)
- func Setns(fd uintptr, flags uintptr) error
- func Setuid(uid int) (err error)
- func SysSetns() uint32
- type ParentDeathSignal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearKeepCaps ¶
func ClearKeepCaps() error
func GetClockTicks ¶
func GetClockTicks() int
func GetProcessStartTime ¶
look in /proc to find the process start time so that we can verify that this pid has started after ourself
func Lgetxattr ¶
Returns a []byte slice if the xattr is set and nil otherwise Requires path and its attribute as arguments
func Llistxattr ¶
Returns the size of xattrs and nil error Requires path, takes allocated []byte or nil as last argument
func RunningInUserNS ¶ added in v0.0.7
func RunningInUserNS() bool
* Detect whether we are currently running in a user namespace. * Copied from github.com/lxc/lxd/shared/util.go
func SetKeepCaps ¶
func SetKeepCaps() error
func SetParentDeathSignal ¶
Types ¶
type ParentDeathSignal ¶
type ParentDeathSignal int
func GetParentDeathSignal ¶
func GetParentDeathSignal() (ParentDeathSignal, error)
func (ParentDeathSignal) Restore ¶
func (p ParentDeathSignal) Restore() error
func (ParentDeathSignal) Set ¶
func (p ParentDeathSignal) Set() error
Click to show internal directories.
Click to hide internal directories.