summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/tty/BUILD
diff options
context:
space:
mode:
authorKevin Krakauer <krakauer@google.com>2019-03-21 18:03:49 -0700
committerShentubot <shentubot@google.com>2019-03-21 18:05:07 -0700
commit0cd5f2004444b1c792ab3d4bd3b01699b11b9553 (patch)
tree110883d8ae024c9df8929fb8834926b63fd7cba0 /pkg/sentry/fs/tty/BUILD
parentba828233b9e934992ac024232e5018ce9971f334 (diff)
Replace manual pty copies to/from userspace with safemem operations.
Also, changing queue.writeBuf from a buffer.Bytes to a [][]byte should reduce copying and reallocating of slices. PiperOrigin-RevId: 239713547 Change-Id: I6ee5ff19c3ee2662f1af5749cae7b73db0569e96
Diffstat (limited to 'pkg/sentry/fs/tty/BUILD')
-rw-r--r--pkg/sentry/fs/tty/BUILD1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/fs/tty/BUILD b/pkg/sentry/fs/tty/BUILD
index bee2db3f3..908d9de09 100644
--- a/pkg/sentry/fs/tty/BUILD
+++ b/pkg/sentry/fs/tty/BUILD
@@ -24,6 +24,7 @@ go_library(
"//pkg/sentry/fs",
"//pkg/sentry/fs/fsutil",
"//pkg/sentry/kernel/auth",
+ "//pkg/sentry/safemem",
"//pkg/sentry/socket/unix/transport",
"//pkg/sentry/unimpl",
"//pkg/sentry/usermem",