diff options
author | Dean Deng <deandeng@google.com> | 2019-12-10 10:56:51 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-12-10 11:36:08 -0800 |
commit | f6e87be82f189d7d2176dc2ca4a2d261481a032a (patch) | |
tree | 9a5613416e3caef8c4dad5c536f685d7f4c1feab /pkg/sentry/socket | |
parent | f47eaffd5c59445b8cafda1b7a51e7f4be5d254a (diff) |
Let socket.ControlMessages Release() the underlying transport.ControlMessages.
PiperOrigin-RevId: 284804370
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r-- | pkg/sentry/socket/socket.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/socket/socket.go b/pkg/sentry/socket/socket.go index 8c250c325..2389a9cdb 100644 --- a/pkg/sentry/socket/socket.go +++ b/pkg/sentry/socket/socket.go @@ -43,6 +43,11 @@ type ControlMessages struct { IP tcpip.ControlMessages } +// Release releases Unix domain socket credentials and rights. +func (c *ControlMessages) Release() { + c.Unix.Release() +} + // Socket is the interface containing socket syscalls used by the syscall layer // to redirect them to the appropriate implementation. type Socket interface { |