summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/linux64_amd64.go
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2020-02-07 14:00:50 -0800
committergVisor bot <gvisor-bot@google.com>2020-02-07 14:01:47 -0800
commite1587a28876f8aac689a2cd1b7630f1637655b58 (patch)
tree30730a5757e42be81d882464e7b2ecca45636e34 /pkg/sentry/strace/linux64_amd64.go
parent6de49546cb32806896cec27d3ab76e96323ecac1 (diff)
Log level, optname, optval and optlen in getsockopt/setsockopt in strace.
Log 8, 16, and 32 int optvals and dump the memory of other sizes. Updates #1782 PiperOrigin-RevId: 293889388
Diffstat (limited to 'pkg/sentry/strace/linux64_amd64.go')
-rw-r--r--pkg/sentry/strace/linux64_amd64.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/strace/linux64_amd64.go b/pkg/sentry/strace/linux64_amd64.go
index 85ec66fd3..a4de545e9 100644
--- a/pkg/sentry/strace/linux64_amd64.go
+++ b/pkg/sentry/strace/linux64_amd64.go
@@ -78,8 +78,8 @@ var linuxAMD64 = SyscallMap{
51: makeSyscallInfo("getsockname", FD, PostSockAddr, SockLen),
52: makeSyscallInfo("getpeername", FD, PostSockAddr, SockLen),
53: makeSyscallInfo("socketpair", SockFamily, SockType, SockProtocol, Hex),
- 54: makeSyscallInfo("setsockopt", FD, Hex, Hex, Hex, Hex),
- 55: makeSyscallInfo("getsockopt", FD, Hex, Hex, Hex, Hex),
+ 54: makeSyscallInfo("setsockopt", FD, SockOptLevel, SockOptName, SetSockOptVal, Hex /* length by value, not a pointer */),
+ 55: makeSyscallInfo("getsockopt", FD, SockOptLevel, SockOptName, GetSockOptVal, SockLen),
56: makeSyscallInfo("clone", CloneFlags, Hex, Hex, Hex, Hex),
57: makeSyscallInfo("fork"),
58: makeSyscallInfo("vfork"),