diff options
author | Andrei Vagin <avagin@google.com> | 2019-05-28 22:28:01 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-05-30 12:06:15 -0700 |
commit | 4b9cb381572e0f61f2a6c2259094548172900e0d (patch) | |
tree | 8f995b4453216f545a27249bbf28a4f354aecc5d /pkg/sentry/socket/epsocket/provider.go | |
parent | 507a15dce974d0cff18253ba50af29d6579bacc5 (diff) |
gvisor: socket() returns EPROTONOSUPPORT if protocol is not supported
PiperOrigin-RevId: 250426407
Diffstat (limited to 'pkg/sentry/socket/epsocket/provider.go')
-rw-r--r-- | pkg/sentry/socket/epsocket/provider.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/socket/epsocket/provider.go b/pkg/sentry/socket/epsocket/provider.go index fb1815c2d..ec930d8d5 100644 --- a/pkg/sentry/socket/epsocket/provider.go +++ b/pkg/sentry/socket/epsocket/provider.go @@ -76,7 +76,7 @@ func getTransportProtocol(ctx context.Context, stype transport.SockType, protoco return header.TCPProtocolNumber, nil } } - return 0, syserr.ErrInvalidArgument + return 0, syserr.ErrProtocolNotSupported } // Socket creates a new socket object for the AF_INET or AF_INET6 family. |