package idmap

import "github.com/containers/storage/pkg/idmap"

Index

Functions

func CreateIDMappedMount

func CreateIDMappedMount(source, target string, pid int) error

CreateIDMappedMount creates a IDMapped bind mount from SOURCE to TARGET using the user namespace for the PID process.

func CreateUsernsProcess

func CreateUsernsProcess(uidMaps []idtools.IDMap, gidMaps []idtools.IDMap) (int, func(), error)

CreateUsernsProcess forks the current process and creates a user namespace using the specified mappings. It returns the pid of the new process.

Source Files

idmapped_utils.go

Version
v1.58.0 (latest)
Published
Apr 15, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
3 weeks ago

Tools for package owners.