gvisor/pkg/sentry
Ayush Ranjan 8da9f8a12c Migrate from using io.ReadSeeker to io.ReaderAt.
This provides the following benefits:
- We can now use pkg/fd package which does not take ownership
  of the file descriptor. So it does not close the fd when garbage collected.
  This reduces scope of errors from unexpected garbage collection of io.File.
- It enforces the offset parameter in every read call.
  It does not affect the fd offset nor is it affected by it. Hence reducing
  scope of error of using stale offsets when reading.
- We do not need to serialize the usage of any global file descriptor anymore.
  So this drops the mutual exclusion req hence reducing complexity and
  congestion.

PiperOrigin-RevId: 260635174
2019-07-29 20:12:37 -07:00
..
arch Add ARM64 support to pkg/sentry/loader 2019-07-21 19:30:18 -07:00
context Preallocate auth.NewAnonymousCredentials() in contexttest.TestContext. 2019-06-20 13:36:14 -07:00
control Use different pidns among different containers 2019-07-24 13:38:23 +08:00
device Update canonical repository. 2019-06-13 16:50:15 -07:00
fs Migrate from using io.ReadSeeker to io.ReaderAt. 2019-07-29 20:12:37 -07:00
fsimpl/memfs Sentry virtual filesystem, v2 2019-07-18 15:10:29 -07:00
hostcpu Update canonical repository. 2019-06-13 16:50:15 -07:00
hostmm Update canonical repository. 2019-06-13 16:50:15 -07:00
inet Support /proc/net/dev 2019-07-15 22:51:05 -07:00
kernel Rate limit the unimplemented syscall event handler. 2019-07-29 17:12:50 -07:00
limits Update canonical repository. 2019-06-13 16:50:15 -07:00
loader Add ARM64 support to pkg/sentry/loader 2019-07-21 19:30:18 -07:00
memmap Fix various spelling issues in the documentation 2019-06-27 14:25:50 -07:00
mm Add finalizer on AtomicRefCount to check for leaks. 2019-06-28 20:07:52 -07:00
pgalloc Update canonical repository. 2019-06-13 16:50:15 -07:00
platform kvm: fix race between machine.Put and machine.Get 2019-07-22 13:28:16 -07:00
safemem Update canonical repository. 2019-06-13 16:50:15 -07:00
sighandling Update canonical repository. 2019-06-13 16:50:15 -07:00
socket Add support for a subnet prefix length on interface network addresses 2019-07-24 13:42:14 -07:00
state Update canonical repository. 2019-06-13 16:50:15 -07:00
strace netstack/udp: connect with the AF_UNSPEC address family means disconnect 2019-07-03 14:19:02 -07:00
syscalls Rate limit the unimplemented syscall event handler. 2019-07-29 17:12:50 -07:00
time build: add nogo for static validation 2019-07-09 16:44:06 -07:00
unimpl Update canonical repository. 2019-06-13 16:50:15 -07:00
uniqueid Update canonical repository. 2019-06-13 16:50:15 -07:00
usage Update canonical repository. 2019-06-13 16:50:15 -07:00
usermem Update canonical repository. 2019-06-13 16:50:15 -07:00
vfs Sentry virtual filesystem, v2 2019-07-18 15:10:29 -07:00
watchdog Add list of stuck tasks to panic message 2019-06-21 12:46:53 -07:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00