gvisor/pkg/sentry
Fabricio Voznika 02ab1f187c Copy up parent when binding UDS on overlayfs
Overlayfs was expecting the parent to exist when bind(2)
was called, which may not be the case. The fix is to copy
the parent directory to the upper layer before binding
the UDS.

There is not good place to add tests for it. Syscall tests
would be ideal, but it's hard to guarantee that the
directory where the socket is created hasn't been touched
before (and thus copied the parent to the upper layer).
Added it to runsc integration tests for now. If it turns
out we have lots of these kind of tests, we can consider
moving them somewhere more appropriate.

PiperOrigin-RevId: 251954156
2019-06-06 16:45:51 -07:00
..
arch Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
context Implement async MemoryFile eviction, and use it in CachingInodeOperations. 2019-04-30 13:56:41 -07:00
control Add support for collecting execution trace to runsc. 2019-05-30 12:07:11 -07:00
device Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fs Copy up parent when binding UDS on overlayfs 2019-06-06 16:45:51 -07:00
hostcpu Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
hostmm Implement reclaim-driven MemoryFile eviction. 2019-06-06 16:27:55 -07:00
inet Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
kernel "Implement" mbind(2). 2019-06-06 16:29:46 -07:00
limits Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
loader Fix inconsistencies in ELF anonymous mappings 2019-05-21 17:06:05 -07:00
memmap Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
memutil Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
mm "Implement" mbind(2). 2019-06-06 16:29:46 -07:00
pgalloc Implement reclaim-driven MemoryFile eviction. 2019-06-06 16:27:55 -07:00
platform Add build guard to files using go:linkname 2019-05-30 12:09:39 -07:00
safemem Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
sighandling Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket Track and export socket state. 2019-06-06 15:04:47 -07:00
state Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
strace Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
syscalls "Implement" mbind(2). 2019-06-06 16:29:46 -07:00
time Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
unimpl Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
uniqueid Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
usage Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
usermem Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
watchdog Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00