summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/netlink/BUILD
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2019-10-10 16:54:30 -0700
committergVisor bot <gvisor-bot@google.com>2019-10-10 16:55:48 -0700
commit470997ca9990f2a985b7c29f5f27dc56b5fbec32 (patch)
tree6545a5f1a76b63309d851635ae8aa0219b56d129 /pkg/sentry/socket/netlink/BUILD
parentc7e901f47a09eaac56bd4813227edff016fa6bff (diff)
Allow for zero byte iovec with MSG_PEEK | MSG_TRUNC in recvmsg.
This allows for peeking at the length of the next message on a netlink socket without pulling it off the socket's buffer/queue, allowing tools like 'ip' to work. This CL also fixes an issue where dump_done_errno was not included in the NLMSG_DONE messages payload. Issue #769 PiperOrigin-RevId: 274068637
Diffstat (limited to 'pkg/sentry/socket/netlink/BUILD')
-rw-r--r--pkg/sentry/socket/netlink/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netlink/BUILD b/pkg/sentry/socket/netlink/BUILD
index 45ebb2a0e..7da68384e 100644
--- a/pkg/sentry/socket/netlink/BUILD
+++ b/pkg/sentry/socket/netlink/BUILD
@@ -21,6 +21,7 @@ go_library(
"//pkg/sentry/fs/fsutil",
"//pkg/sentry/kernel",
"//pkg/sentry/kernel/time",
+ "//pkg/sentry/safemem",
"//pkg/sentry/socket",
"//pkg/sentry/socket/netlink/port",
"//pkg/sentry/socket/unix",