Documentation ¶
Index ¶
Constants ¶
View Source
const ( NSEnv = "_SINGULARITY_NAMESPACE" UIDEnv = "_CONTAINERS_ROOTLESS_UID" GIDEnv = "_CONTAINERS_ROOTLESS_GID" )
Variables ¶
This section is empty.
Functions ¶
func ExecWithFakeroot ¶
ExecWithFakeroot will exec singularity with provided args, in a subuid/gid-mapped fakeroot user namespace. This uses the fakeroot engine.
func GetUser ¶
GetUser retrieves the User struct for the uid stored in the env var _CONTAINERS_ROOTLESS_UID, or the current euid if the env var is not set.
func Getgid ¶
Getgid retrieves the uid stored in the env var _CONTAINERS_ROOTLESS_GID, or the current egid if the env var is not set.
func Getuid ¶
Getuid retrieves the uid stored in the env var _CONTAINERS_ROOTLESS_UID, or the current euid if the env var is not set.
func RunInMountNS ¶
RunInMountNS will run singularity with provided args, in a mount namespace only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.