rootless

package
v0.6.7-0...-da823cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunningWithNonRootUsername

func RunningWithNonRootUsername() bool

RunningWithNonRootUsername returns true if we $USER is set to a non-root value, regardless to the UID/EUID value.

The value of this variable is mostly used for configuring default paths. If the value is true, $HOME and $XDG_RUNTIME_DIR should be honored for setting up the default paths. If false (not only EUID==0 but also $USER==root), $HOME and $XDG_RUNTIME_DIR should be ignored even if we are in a user namespace.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL