MCPcopy
hub / github.com/google/gvisor / copyInPath

Function copyInPath

pkg/sentry/syscalls/linux/path.go:26–32  ·  view source on GitHub ↗
(t *kernel.Task, addr hostarch.Addr)

Source from the content-addressed store, hash-verified

24)
25
26func copyInPath(t *kernel.Task, addr hostarch.Addr) (fspath.Path, error) {
27 pathname, err := t.CopyInString(addr, linux.PATH_MAX)
28 if err != nil {
29 return fspath.Path{}, err
30 }
31 return fspath.Parse(pathname), nil
32}
33
34type taskPathOperation struct {
35 pop vfs.PathOperation

Callers 15

mknodatFunction · 0.85
openatFunction · 0.85
accessAtFunction · 0.85
ChdirFunction · 0.85
ChrootFunction · 0.85
PivotRootFunction · 0.85
mkdiratFunction · 0.85
rmdiratFunction · 0.85
symlinkatFunction · 0.85
linkatFunction · 0.85
readlinkatFunction · 0.85
unlinkatFunction · 0.85

Calls 2

ParseFunction · 0.92
CopyInStringMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…