package userns
import "github.com/opencontainers/runc/libcontainer/userns"
Index ¶
- Variables
- func GetUserNamespaceMappings(nsPath string) (uidMap, gidMap []configs.IDMap, err error)
- func IsSameMapping(a, b []configs.IDMap) bool
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 IsSameMapping ¶
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.14
- Published
- Sep 3, 2024
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 1 hour ago –
Tools for package owners.