namespaces

package
v1.0.0-rc.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enter

func Enter(pid int, namespace string) error

Enter enters in provided process namespace.

func HostUID

func HostUID() (int, error)

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

func IsInsideUserNamespace(pid int) (bool, bool)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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