summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-09-30 01:11:13 +0000
committergVisor bot <gvisor-bot@google.com>2020-09-30 01:11:13 +0000
commit09cba788b0e19d207dc447372d9cc63eb192d09c (patch)
tree21991c1a80571cf5c1de7c0dc4a29041dc3c9788 /pkg/sentry/strace
parenteac775f807932304413ea34856babd8bc503a54b (diff)
parent387501219e87701a6adeb8417542927ee39b9950 (diff)
Merge release-20200921.0-74-g387501219 (automated)
Diffstat (limited to 'pkg/sentry/strace')
-rw-r--r--pkg/sentry/strace/strace.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/sentry/strace/strace.go b/pkg/sentry/strace/strace.go
index 52281ccc2..396744597 100644
--- a/pkg/sentry/strace/strace.go
+++ b/pkg/sentry/strace/strace.go
@@ -17,7 +17,6 @@
package strace
import (
- "encoding/binary"
"fmt"
"strconv"
"strings"
@@ -294,7 +293,7 @@ func itimerval(t *kernel.Task, addr usermem.Addr) string {
}
interval := timeval(t, addr)
- value := timeval(t, addr+usermem.Addr(binary.Size(linux.Timeval{})))
+ value := timeval(t, addr+usermem.Addr((*linux.Timeval)(nil).SizeBytes()))
return fmt.Sprintf("%#x {interval=%s, value=%s}", addr, interval, value)
}
@@ -304,7 +303,7 @@ func itimerspec(t *kernel.Task, addr usermem.Addr) string {
}
interval := timespec(t, addr)
- value := timespec(t, addr+usermem.Addr(binary.Size(linux.Timespec{})))
+ value := timespec(t, addr+usermem.Addr((*linux.Timespec)(nil).SizeBytes()))
return fmt.Sprintf("%#x {interval=%s, value=%s}", addr, interval, value)
}