Dean Deng and gVisor bot
63f4cef4d1
[vfs2] Fix fork reference leaks.
...
PiperOrigin-RevId: 337919424
2020-10-19 13:20:13 -07:00
Dean Deng and gVisor bot
432963dd2d
[vfs2] Don't take reference in Task.MountNamespaceVFS2 and MountNamespace.Root.
...
This fixes reference leaks related to accidentally forgetting to DecRef()
after calling one or the other.
PiperOrigin-RevId: 336918922
2020-10-13 11:31:22 -07:00
gVisor bot
d64ba89da3
Internal change.
...
PiperOrigin-RevId: 324826968
2020-08-04 09:31:11 -07:00
Nayana Bidari and gVisor bot
b2ae7ea1bb
Plumbing context.Context to DecRef() and Release().
...
context is passed to DecRef() and Release() which is
needed for SO_LINGER implementation.
PiperOrigin-RevId: 324672584
2020-08-03 13:36:05 -07:00
gVisor bot
c81ac8ec3b
Merge pull request #2672 from amscanne:shim-integrated
...
PiperOrigin-RevId: 321053634
2020-07-13 16:10:58 -07:00
Fabricio Voznika and gVisor bot
c4815af947
Add shared mount hints to VFS2
...
Container restart test is disabled for VFS2 for now.
Updates #1487
PiperOrigin-RevId: 320296401
2020-07-08 17:12:29 -07:00
Ayush Ranjan and gVisor bot
efa2615eb0
[vfs2] Remove VFS1 usage in VDSO.
...
Removed VDSO dependency on VFS1.
Resolves #2921
PiperOrigin-RevId: 320122176
2020-07-07 21:37:08 -07:00
Nicolas Lacasse and gVisor bot
9de982ea79
Allow passing root file type to tmpfs.
...
PiperOrigin-RevId: 304053357
2020-03-31 15:02:57 -07:00
Fabricio Voznika and gVisor bot
45a8ae240d
Add remaining procfs files
...
Closes #1195
PiperOrigin-RevId: 300867055
2020-03-13 18:57:07 -07:00
gVisor bot and Copybara-Service
4a73bae269
Initial network namespace support.
...
TCP/IP will work with netstack networking. hostinet doesn't work, and sockets
will have the same behavior as it is now.
Before the userspace is able to create device, the default loopback device can
be used to test.
/proc/net and /sys/net will still be connected to the root network stack; this
is the same behavior now.
Issue #1833
PiperOrigin-RevId: 296309389
2020-02-20 15:20:40 -08:00
gVisor bot
3557b26651
Allow vfs.IterDirentsCallback.Handle() to return an error.
...
This is easier than storing errors from e.g. CopyOut in the callback.
PiperOrigin-RevId: 295230021
2020-02-14 14:40:35 -08:00
gVisor bot
e4c7f3e6f6
Inline vfs.VirtualFilesystem in Kernel struct
...
This saves one pointer dereference per VFS access.
Updates #1623
PiperOrigin-RevId: 295216176
2020-02-14 13:40:39 -08:00
gVisor bot
4075de11be
Plumb VFS2 inside the Sentry
...
- Added fsbridge package with interface that can be used to open
and read from VFS1 and VFS2 files.
- Converted ELF loader to use fsbridge
- Added VFS2 types to FSContext
- Added vfs.MountNamespace to ThreadGroup
Updates #1623
PiperOrigin-RevId: 295183950
2020-02-14 11:12:47 -08:00
Fabricio Voznika and gVisor bot
dcffddf0ca
Remove argument from vfs.MountNamespace.DecRef()
...
Updates #1035
PiperOrigin-RevId: 293194631
2020-02-04 11:48:36 -08:00
Adin Scannell and gVisor bot
0e2f1b7abd
Update package locations.
...
Because the abi will depend on the core types for marshalling (usermem,
context, safemem, safecopy), these need to be flattened from the sentry
directory. These packages contain no sentry-specific details.
PiperOrigin-RevId: 291811289
2020-01-27 15:31:32 -08:00
Adin Scannell and gVisor bot
d29e59af9f
Standardize on tools directory.
...
PiperOrigin-RevId: 291745021
2020-01-27 12:21:00 -08:00
Rahat Mahmood and gVisor bot
896bd654b6
De-duplicate common test functionality for VFS2 filesystems.
...
PiperOrigin-RevId: 291041576
2020-01-22 15:16:21 -08:00
Rahat Mahmood and gVisor bot
ad1968ed56
Implement sysfs.
...
PiperOrigin-RevId: 290822487
2020-01-21 15:13:26 -08:00