namespaces

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 7 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