diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-04 18:12:19 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-04 18:12:19 +0000 |
commit | ee17c270cc3578622d1bb9948724fafdcf4e5111 (patch) | |
tree | 67e29c1f0dab0a49848900c8cd529a863e82b5d3 /pkg/sentry/socket/netlink/provider.go | |
parent | 909b8159d6258a7ff4971517ceaeec504cb97025 (diff) | |
parent | b23b36e701c40827065217f4652a51eebc5f9913 (diff) |
Merge release-20190806.1-367-gb23b36e (automated)
Diffstat (limited to 'pkg/sentry/socket/netlink/provider.go')
-rw-r--r-- | pkg/sentry/socket/netlink/provider.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netlink/provider.go b/pkg/sentry/socket/netlink/provider.go index 689cad997..be005df24 100644 --- a/pkg/sentry/socket/netlink/provider.go +++ b/pkg/sentry/socket/netlink/provider.go @@ -30,6 +30,13 @@ type Protocol interface { // Protocol returns the Linux netlink protocol value. Protocol() int + // CanSend returns true if this protocol may ever send messages. + // + // TODO(gvisor.dev/issue/1119): This is a workaround to allow + // advertising support for otherwise unimplemented features on sockets + // that will never send messages, thus making those features no-ops. + CanSend() bool + // ProcessMessage processes a single message from userspace. // // If err == nil, any messages added to ms will be sent back to the |