summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/inode_inotify.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-09-04 11:36:41 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-09 17:53:10 -0700
commit3daaddb90c3d72c6244ef379c1a9a651aa971bef (patch)
tree150370778496dead996956217309582d8942e78f /pkg/sentry/fs/inode_inotify.go
parentfb6c6faea2cefb05440845fccce9dcab0779b90d (diff)
Simplify FD handling for container start/exec
VFS1 and VFS2 host FDs have different dupping behavior, making error prone to code for both. Change the contract so that FDs are released as they are used, so the caller can simple defer a block that closes all remaining files. This also addresses handling of partial failures. With this fix, more VFS2 tests can be enabled. Updates #1487 PiperOrigin-RevId: 330112266
Diffstat (limited to 'pkg/sentry/fs/inode_inotify.go')
0 files changed, 0 insertions, 0 deletions