diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-08-06 18:06:26 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-06 18:06:26 +0000 |
commit | f7047425ed2fc47af78a3f3fe51aae30a8efaec3 (patch) | |
tree | c51355785a18e157b177996bce0d173d4571e10e /pkg/sentry/devices | |
parent | 608ecb8fce5738307ca760058488fc725c06c417 (diff) | |
parent | 63447e5afae62dab64940054372166dab45a057c (diff) |
Merge release-20200804.0-29-g63447e5af (automated)
Diffstat (limited to 'pkg/sentry/devices')
-rw-r--r-- | pkg/sentry/devices/tundev/tundev.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/devices/tundev/tundev.go b/pkg/sentry/devices/tundev/tundev.go index 852ec3c5c..a40625e19 100644 --- a/pkg/sentry/devices/tundev/tundev.go +++ b/pkg/sentry/devices/tundev/tundev.go @@ -160,8 +160,8 @@ func (fd *tunFD) EventUnregister(e *waiter.Entry) { fd.device.EventUnregister(e) } -// isNetTunSupported returns whether /dev/net/tun device is supported for s. -func isNetTunSupported(s inet.Stack) bool { +// IsNetTunSupported returns whether /dev/net/tun device is supported for s. +func IsNetTunSupported(s inet.Stack) bool { _, ok := s.(*netstack.Stack) return ok } |