Documentation ¶
Overview ¶
Package process contains a wrapper around a running bwrap instance, and is in a separate package just to break an import loop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
Process is a running bwrap instance.
func NewProcess ¶
NewProcess creates a new Process instance from a Cmd.
func (*Process) AddTermHook ¶
func (p *Process) AddTermHook(fn func())
AddTermHook adds the hook function fn to be called on process exit.
func (*Process) Kill ¶
func (p *Process) Kill()
Kill terminates the bwrap instance and all of it's children.
func (*Process) SetInitPid ¶
SetInitPid sets the pid of the bwrap init fork. This should not be called except from the sandbox creation routine.
Click to show internal directories.
Click to hide internal directories.