summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-06 18:06:26 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-06 18:06:26 +0000
commitf7047425ed2fc47af78a3f3fe51aae30a8efaec3 (patch)
treec51355785a18e157b177996bce0d173d4571e10e /pkg/sentry
parent608ecb8fce5738307ca760058488fc725c06c417 (diff)
parent63447e5afae62dab64940054372166dab45a057c (diff)
Merge release-20200804.0-29-g63447e5af (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/devices/tundev/tundev.go4
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
}