diff options
author | Andrei Vagin <avagin@google.com> | 2019-06-03 21:47:09 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-03 21:48:19 -0700 |
commit | 90a116890fcea9fd39911bae854e4e67608a141d (patch) | |
tree | b187c89a7c3b1188347b2fb7684b84a1bc44630e /pkg/sentry/fs/gofer/socket.go | |
parent | 00f8663887cbf9057d93e8848eb9538cf1c0cff4 (diff) |
gvisor/sock/unix: pass creds when a message is sent between unconnected sockets
and don't report a sender address if it doesn't have one
PiperOrigin-RevId: 251371284
Diffstat (limited to 'pkg/sentry/fs/gofer/socket.go')
-rw-r--r-- | pkg/sentry/fs/gofer/socket.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/fs/gofer/socket.go b/pkg/sentry/fs/gofer/socket.go index cbd5b9a84..7376fd76f 100644 --- a/pkg/sentry/fs/gofer/socket.go +++ b/pkg/sentry/fs/gofer/socket.go @@ -139,3 +139,8 @@ func (e *endpoint) UnidirectionalConnect() (transport.ConnectedEndpoint, *syserr func (e *endpoint) Release() { e.inode.DecRef() } + +// Passcred implements transport.BoundEndpoint.Passcred. +func (e *endpoint) Passcred() bool { + return false +} |