diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2020-07-11 06:21:34 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-11 06:22:47 -0700 |
commit | 216dcebc066c82907b0de790a77a3deb6a734805 (patch) | |
tree | d85e5ffe5d2359be720de1a3c84273d02a06a9fe /pkg/sentry/socket | |
parent | 5df3a8fedef7e54550d4c6b7172e25216600ee9f (diff) |
Stub out SO_DETACH_FILTER.
Updates #2746
PiperOrigin-RevId: 320757963
Diffstat (limited to 'pkg/sentry/socket')
-rw-r--r-- | pkg/sentry/socket/netstack/netstack.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netstack/netstack.go b/pkg/sentry/socket/netstack/netstack.go index 5a3cedd7c..78a842973 100644 --- a/pkg/sentry/socket/netstack/netstack.go +++ b/pkg/sentry/socket/netstack/netstack.go @@ -1754,6 +1754,11 @@ func setSockOptSocket(t *kernel.Task, s socket.SocketOps, ep commonEndpoint, nam return nil + case linux.SO_DETACH_FILTER: + // optval is ignored. + var v tcpip.SocketDetachFilterOption + return syserr.TranslateNetstackError(ep.SetSockOpt(v)) + default: socket.SetSockOptEmitUnimplementedEvent(t, name) } |