diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-04-16 11:48:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-16 11:49:27 -0700 |
commit | 28399818fc1e5d294cc93ddd4a1ac7e31c375fbf (patch) | |
tree | 950c2921a14ee5547735e767e48048749f0685cb /pkg/sentry/strace | |
parent | 09c7e3f6e497f4ae267772e7357763ac7c18659f (diff) |
Make ExtractErrno a function
PiperOrigin-RevId: 306891171
Diffstat (limited to 'pkg/sentry/strace')
-rw-r--r-- | pkg/sentry/strace/strace.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/strace/strace.go b/pkg/sentry/strace/strace.go index b94c4fbf5..68ca537c8 100644 --- a/pkg/sentry/strace/strace.go +++ b/pkg/sentry/strace/strace.go @@ -719,7 +719,7 @@ func (s SyscallMap) SyscallEnter(t *kernel.Task, sysno uintptr, args arch.Syscal // SyscallExit implements kernel.Stracer.SyscallExit. It logs the syscall // exit trace. func (s SyscallMap) SyscallExit(context interface{}, t *kernel.Task, sysno, rval uintptr, err error) { - errno := t.ExtractErrno(err, int(sysno)) + errno := kernel.ExtractErrno(err, int(sysno)) c := context.(*syscallContext) elapsed := time.Since(c.start) |