summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/util_unsafe.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-11-18 19:59:51 +0000
committergVisor bot <gvisor-bot@google.com>2019-11-18 19:59:51 +0000
commitfb97248393bd2acffab4bb59e3b9fcb32aa9d9fe (patch)
tree3deb7b7c092a924f1cbcc29af625040e183fdf3b /pkg/sentry/fs/host/util_unsafe.go
parentac49b282fdd81b48b8ad7a6675a2fa0f612d2149 (diff)
parent235a96cab15e64c69fbbdce03c9bb4eb2c30b0d5 (diff)
Merge release-20191114.0-13-g235a96c (automated)
Diffstat (limited to 'pkg/sentry/fs/host/util_unsafe.go')
-rw-r--r--pkg/sentry/fs/host/util_unsafe.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/pkg/sentry/fs/host/util_unsafe.go b/pkg/sentry/fs/host/util_unsafe.go
index 2b76f1065..3ab36b088 100644
--- a/pkg/sentry/fs/host/util_unsafe.go
+++ b/pkg/sentry/fs/host/util_unsafe.go
@@ -116,22 +116,3 @@ func setTimestamps(fd int, ts fs.TimeSpec) error {
}
return nil
}
-
-func fstatat(fd int, name string, flags int) (syscall.Stat_t, error) {
- var stat syscall.Stat_t
- namePtr, err := syscall.BytePtrFromString(name)
- if err != nil {
- return stat, err
- }
- _, _, errno := syscall.Syscall6(
- syscall.SYS_NEWFSTATAT,
- uintptr(fd),
- uintptr(unsafe.Pointer(namePtr)),
- uintptr(unsafe.Pointer(&stat)),
- uintptr(flags),
- 0, 0)
- if errno != 0 {
- return stat, errno
- }
- return stat, nil
-}