MCPcopy
hub / github.com/containerd/containerd / IDMapMount

Function IDMapMount

core/mount/mount_idmapped_linux.go:81–83  ·  view source on GitHub ↗

IDMapMount clones the mount at source to target, applying GID/UID idmapping of the user namespace for target path

(source, target string, usernsFd int)

Source from the content-addressed store, hash-verified

79
80// IDMapMount clones the mount at source to target, applying GID/UID idmapping of the user namespace for target path
81func IDMapMount(source, target string, usernsFd int) (err error) {
82 return IDMapMountWithAttrs(source, target, usernsFd, 0, 0)
83}
84
85// IDMapMountWithAttrs clones the mount at source to target with the provided mount options and idmapping of the user namespace.
86func IDMapMountWithAttrs(source, target string, usernsFd int, attrSet uint64, attrClr uint64) (err error) {

Callers 2

mountMethod · 0.85
testIDMapMountFunction · 0.85

Calls 1

IDMapMountWithAttrsFunction · 0.85

Tested by 1

testIDMapMountFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…