From 15de8cc9e0e7789c3d55595171b3272ec726931f Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Mon, 11 May 2020 16:13:14 -0700 Subject: Add fsimpl/gofer.InternalFilesystemOptions.OpenSocketsByConnecting. PiperOrigin-RevId: 311014995 --- pkg/sentry/fsimpl/gofer/gofer.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/sentry/fsimpl/gofer/gofer.go') diff --git a/pkg/sentry/fsimpl/gofer/gofer.go b/pkg/sentry/fsimpl/gofer/gofer.go index e68e37ebc..1da8d5d82 100644 --- a/pkg/sentry/fsimpl/gofer/gofer.go +++ b/pkg/sentry/fsimpl/gofer/gofer.go @@ -221,6 +221,10 @@ type InternalFilesystemOptions struct { // which servers can handle only a single client and report failure if that // client disconnects. LeakConnection bool + + // If OpenSocketsByConnecting is true, silently translate attempts to open + // files identifying as sockets to connect RPCs. + OpenSocketsByConnecting bool } // Name implements vfs.FilesystemType.Name. -- cgit v1.2.3