userns

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: Apache-2.0 Imports: 4 Imported by: 242

Documentation

Overview

Package userns provides utilities to detect whether we are currently running in a Linux user namespace.

This code was migrated from libcontainer/runc, which based its implementation on code from lcx/incus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunningInUserNS

func RunningInUserNS() bool

RunningInUserNS detects whether we are currently running in a Linux user namespace and memoizes the result. It returns false on non-Linux platforms.

Types

This section is empty.

Jump to

Keyboard shortcuts

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