Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SwitchRoot ¶
SwitchRoot changes path to be the root of the mount tree and changes the current working directory to the new root.
This function bind-mounts onto path; it is the caller's responsibility to set the desired propagation mode of path's parent mount beforehand to prevent unwanted propagation into different mount namespaces.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.