gvisor/pkg/sentry
Jamie Liu 26583e413e Convert []byte to string without copying in usermem.CopyStringIn.
This is the same technique used by Go's strings.Builder
(https://golang.org/src/strings/builder.go#L45), and for the same
reason. (We can't just use strings.Builder because there's no way to get
the underlying []byte to pass to usermem.IO.CopyIn.)

PiperOrigin-RevId: 240594892
Change-Id: Ic070e7e480aee53a71289c7c120850991358c52c
2019-03-27 10:46:28 -07:00
..
arch Change /proc/PID/cmdline to read environment vector. 2019-02-05 10:02:06 -08:00
context Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
control Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
device Remove license comments 2019-01-31 11:12:53 -08:00
fs Implement memfd_create. 2019-03-26 16:16:57 -07:00
hostcpu Remove license comments 2019-01-31 11:12:53 -08:00
inet Remove license comments 2019-01-31 11:12:53 -08:00
kernel Call memmap.Mappable.Translate with more conservative usermem.AccessType. 2019-03-25 12:42:43 -07:00
limits Remove license comments 2019-01-31 11:12:53 -08:00
loader Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
memmap Call memmap.Mappable.Translate with more conservative usermem.AccessType. 2019-03-25 12:42:43 -07:00
memutil Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
mm Call memmap.Mappable.Translate with more conservative usermem.AccessType. 2019-03-25 12:42:43 -07:00
pgalloc Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
platform Allow BP and OF can be called from user space 2019-03-21 22:04:50 -07:00
safemem Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
sighandling Remove license comments 2019-01-31 11:12:53 -08:00
socket Record sockets created during accept(2) for all families. 2019-03-20 14:31:16 -07:00
state Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
strace Format capget/capset arguments 2019-03-01 10:46:36 -08:00
syscalls Implement memfd_create. 2019-03-26 16:16:57 -07:00
time Move package sync to third_party 2019-01-31 17:49:14 -08:00
unimpl Remove license comments 2019-01-31 11:12:53 -08:00
uniqueid Remove license comments 2019-01-31 11:12:53 -08:00
usage Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
usermem Convert []byte to string without copying in usermem.CopyStringIn. 2019-03-27 10:46:28 -07:00
watchdog Remove license comments 2019-01-31 11:12:53 -08:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00