Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run is the main entry point that determines whether to execute as a parent or child process. If running as a child (CHILD env var is set), it sets up networking in the namespace and executes the target command. Otherwise, it runs as the parent process, setting up the jail, proxy server, and managing the child process lifecycle.
Types ¶
type NSJailManager ¶
type NSJailManager struct {
// contains filtered or unexported fields
}
func NewNSJailManager ¶
func (*NSJailManager) RunChildProcess ¶
func (b *NSJailManager) RunChildProcess(command []string) error
Click to show internal directories.
Click to hide internal directories.