Documentation ¶
Index ¶
- func BecomeRootInUserNS() (bool, int, error)
- func GetRootlessUID() int
- func IsRootless() bool
- func JoinDirectUserAndMountNS(pid uint) (bool, int, error)
- func JoinNS(pid uint) (bool, int, error)
- func JoinNSPath(path string) (bool, int, error)
- func SetSkipStorageSetup(v bool)
- func SkipStorageSetup() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BecomeRootInUserNS ¶
BecomeRootInUserNS re-exec podman in a new userNS. It returns whether podman was re-executed into a new user namespace and the return code from the re-executed podman process. If podman was re-executed the caller needs to propagate the error code returned by the child process.
func GetRootlessUID ¶ added in v0.7.1
func GetRootlessUID() int
GetRootlessUID returns the UID of the user in the parent userNS
func JoinDirectUserAndMountNS ¶ added in v1.0.0
JoinDirectUserAndMountNS re-exec podman in a new userNS and join the user and mount namespace of the specified PID without looking up its parent. Useful to join directly the conmon process.
func JoinNS ¶ added in v0.8.5
JoinNS re-exec podman in a new userNS and join the user namespace of the specified PID.
func JoinNSPath ¶ added in v0.9.3
JoinNSPath re-exec podman in a new userNS and join the owner user namespace of the specified path.
func SetSkipStorageSetup ¶ added in v0.8.5
func SetSkipStorageSetup(v bool)
SetSkipStorageSetup tells the runtime to not setup containers/storage
func SkipStorageSetup ¶ added in v0.8.5
func SkipStorageSetup() bool
SkipStorageSetup tells if we should skip the containers/storage setup
Types ¶
This section is empty.