Documentation ¶
Overview ¶
Package mountns contains helpers to enter and leave mount namespaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterInitMountNS ¶
EnterInitMountNS enters the init mount namespace. Please see also the thread-related comment for EnterUserSessionMountNS, which applies here, too.
func EnterUserSessionMountNS ¶
EnterUserSessionMountNS enters the user session mount namespace. Mount namespace is per platform thread, which can be different from go-routine. So in order to use this API safely, the current running context needs to be bound to the platform thread, and it needs to be kept until it is unset by EnterInitMountNs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.