Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HostUID ¶
HostUID attempts to find the original host UID if the current process is running inside a user namespace, if it doesn't it simply returns the current UID
func IsInsideUserNamespace ¶
IsInsideUserNamespace checks if a process is already running in a user namespace and also returns if the process has permissions to use setgroups in this user namespace.
func IsUnprivileged ¶ added in v1.1.0
func IsUnprivileged() bool
IsUnprivileged returns true if running as an unprivileged user, even if the user id is root inside an unprivileged user namespace; otherwise it returns false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.