• Home
  • Raw
  • Download

Lines Matching full:launcher

11 // Launcher holds a configuration for launching a child process with
17 type Launcher struct { struct
39 // NewLauncher returns a new launcher for the specified program path
41 func NewLauncher(path string, args []string, env []string) *Launcher {
42 return &Launcher{
57 func (attr *Launcher) Callback(fn func(*syscall.ProcAttr, interface{}) error) { argument
62 func (attr *Launcher) SetUID(uid int) { argument
69 func (attr *Launcher) SetGroups(gid int, groups []int) { argument
76 func (attr *Launcher) SetMode(mode Mode) { argument
84 func (attr *Launcher) SetIAB(iab *IAB) { argument
90 func (attr *Launcher) SetChroot(root string) { argument
94 // lResult is used to get the result from the doomed launcher thread.
108 // ErrAmbiguousChroot indicates that the Launcher is being used in
111 var ErrAmbiguousChroot = errors.New("use Launcher for chroot")
113 // ErrAmbiguousIDs indicates that the Launcher is being used in
116 var ErrAmbiguousIDs = errors.New("use Launcher for uids and gids")
118 // ErrAmbiguousAmbient indicates that the Launcher is being used in
121 var ErrAmbiguousAmbient = errors.New("use Launcher for ambient caps")
123 // lName is the name we temporarily give to the launcher thread. Note,
125 // is not cleaning up locked launcher OS threads.
126 var lName = []byte("cap-launcher\000")
132 func launch(result chan<- lResult, attr *Launcher, data interface{}, quit chan<- struct{}) { argument
158 // Name the launcher thread - transient, but helps to debug if
228 func (attr *Launcher) Launch(data interface{}) (int, error) { argument