diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-11-19 05:28:06 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-11-19 05:28:06 +0000 |
commit | 317cc02865c2b8f184688a852dce0ed0bdb19c20 (patch) | |
tree | d087e9c172195b98e05eeb925a0900e376689579 /pkg/sentry/socket/unix | |
parent | 3f09108ecd49e1c40544d593b145ee6a6815717c (diff) | |
parent | e5650d124032e38a26e4b8058778e1c5b5aacbf0 (diff) |
Merge release-20201109.0-84-ge5650d124 (automated)
Diffstat (limited to 'pkg/sentry/socket/unix')
-rw-r--r-- | pkg/sentry/socket/unix/transport/unix.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/pkg/sentry/socket/unix/transport/unix.go b/pkg/sentry/socket/unix/transport/unix.go index 8482d1603..4abea90cc 100644 --- a/pkg/sentry/socket/unix/transport/unix.go +++ b/pkg/sentry/socket/unix/transport/unix.go @@ -873,14 +873,8 @@ func (e *baseEndpoint) SetSockOptInt(opt tcpip.SockOptInt, v int) *tcpip.Error { } func (e *baseEndpoint) GetSockOptBool(opt tcpip.SockOptBool) (bool, *tcpip.Error) { - switch opt { - case tcpip.KeepaliveEnabledOption, tcpip.AcceptConnOption: - return false, nil - - default: - log.Warningf("Unsupported socket option: %d", opt) - return false, tcpip.ErrUnknownProtocolOption - } + log.Warningf("Unsupported socket option: %d", opt) + return false, tcpip.ErrUnknownProtocolOption } func (e *baseEndpoint) GetSockOptInt(opt tcpip.SockOptInt) (int, *tcpip.Error) { |