diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-07-15 11:34:07 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-15 11:34:07 -0700 |
commit | fc48ace73aea9294c9f4ee881950d836715bf4d7 (patch) | |
tree | 4b3c634e62ed35bb4ccbe6014cd9f968f37350fa /pkg/sentry/socket/hostinet | |
parent | 1b9965e06a966977a99569484da139d64d1db95e (diff) | |
parent | 505bebae43183a68ee8873764817d282a6c49ec6 (diff) |
Merge pull request #3242 from btw616:fix/issue-3241
PiperOrigin-RevId: 321403149
Diffstat (limited to 'pkg/sentry/socket/hostinet')
-rw-r--r-- | pkg/sentry/socket/hostinet/socket_vfs2.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/hostinet/socket_vfs2.go b/pkg/sentry/socket/hostinet/socket_vfs2.go index 8f192c62f..8a1d52ebf 100644 --- a/pkg/sentry/socket/hostinet/socket_vfs2.go +++ b/pkg/sentry/socket/hostinet/socket_vfs2.go @@ -71,6 +71,7 @@ func newVFS2Socket(t *kernel.Task, family int, stype linux.SockType, protocol in DenyPWrite: true, UseDentryMetadata: true, }); err != nil { + fdnotifier.RemoveFD(int32(s.fd)) return nil, syserr.FromError(err) } return vfsfd, nil |