userns

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package userns makes the process enter a new network namespace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OriginalGID added in v0.4.0

func OriginalGID() uint32

func OriginalUID

func OriginalUID() uint32

func WriteGroupMap added in v0.4.0

func WriteGroupMap(mapping map[uint32]uint32) error

WriteGroupMap builds a map of Host GID -> Namespace GID Example:

WriteGroupMap(map[uint32]uint32{userns.OriginalGID: 0, 1234: 1234})

func WriteUserMap added in v0.4.0

func WriteUserMap(mapping map[uint32]uint32) error

WriteUserMap builds a map of Host UID -> Namespace UID Example:

WriteUserMap(map[uint32]uint32{userns.OriginalUID: 0, 1234: 1234})

Types

This section is empty.

Jump to

Keyboard shortcuts

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