package userns

import "github.com/opencontainers/runc/libcontainer/userns"

Index

Variables

var RunningInUserNS = runningInUserNS

RunningInUserNS detects whether we are currently running in a user namespace. Originally copied from github.com/lxc/lxd/shared/util.go

Functions

func GetUserNamespaceMappings

func GetUserNamespaceMappings(nsPath string) (uidMap, gidMap []configs.IDMap, err error)

func IsSameMapping

func IsSameMapping(a, b []configs.IDMap) bool

IsSameMapping returns whether or not the two id mappings are the same. Note that if the order of the mappings is different, or a mapping has been split, the mappings will be considered different.

Source Files

userns.go userns_linux.go userns_maps_linux.go

Version
v1.1.12
Published
Jan 23, 2024
Platform
linux/amd64
Imports
11 packages
Last checked
22 minutes ago

Tools for package owners.