system

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2015 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 2 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearKeepCaps

func ClearKeepCaps() error

func Execv

func Execv(cmd string, args []string, env []string) error

func GetClockTicks

func GetClockTicks() int

func GetParentDeathSignal

func GetParentDeathSignal() (int, error)

func GetProcessStartTime

func GetProcessStartTime(pid int) (string, error)

look in /proc to find the process start time so that we can verify that this pid has started after ourself

func Lgetxattr

func Lgetxattr(path string, attr string) ([]byte, error)

Returns a []byte slice if the xattr is set and nil otherwise Requires path and its attribute as arguments

func Llistxattr

func Llistxattr(path string, dest []byte) (size int, err error)

Returns the size of xattrs and nil error Requires path, takes allocated []byte or nil as last argument

func Lsetxattr

func Lsetxattr(path string, attr string, data []byte, flags int) error

func ParentDeathSignal

func ParentDeathSignal(sig uintptr) error

func SetKeepCaps

func SetKeepCaps() error

func Setctty

func Setctty() error

func Setgid

func Setgid(gid int) (err error)

Setgid sets the gid of the calling thread to the specified gid.

func Setns

func Setns(fd uintptr, flags uintptr) error

func Setuid

func Setuid(uid int) (err error)

Setuid sets the uid of the calling thread to the specified uid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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