package idmap
import "github.com/containers/storage/pkg/idmap"
Index ¶
- func CreateIDMappedMount(source, target string, pid int) error
- func CreateUsernsProcess(uidMaps []idtools.IDMap, gidMaps []idtools.IDMap) (int, func(), error)
Functions ¶
func CreateIDMappedMount ¶
CreateIDMappedMount creates a IDMapped bind mount from SOURCE to TARGET using the user namespace for the PID process.
func CreateUsernsProcess ¶
CreateUsernsProcess forks the current process and creates a user namespace using the specified mappings. It returns the pid of the new process.
Source Files ¶
- Version
- v1.58.0 (latest)
- Published
- Apr 15, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 3 weeks ago –
Tools for package owners.