Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PIDInit ¶
func PIDInit()
PIDInit initializes a PID namespace and execs the provided init It can be called at the begining of any main() function and will only do anythin if the environment indicates that it should.
func SwitchRoot ¶
SwitchRoot implements a switch_root to the image in newRoot and Execs init Since this uses Exec, the process is completely taken over by this call, so don't expect a return. SwitchRoot is a wrapper for OS specific implementation(s)
func UnshareRoot ¶
UnshareRoot spawns the image in newRoot as a new container. This is a blocking execution. TODO: add process tracking capabilities, non-blocking execution UnshareRoot is a wrapper for OS specific implementation(s)
Types ¶
This section is empty.