summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-07-02 00:14:06 +0000
committergVisor bot <gvisor-bot@google.com>2020-07-02 00:14:06 +0000
commita5a0f243e36edf4c03efe975098d0f6d26aa9629 (patch)
tree100b9019d33381b7d5fbee753baef123d753aff9 /pkg/sentry/fsimpl
parent60fa47d34063f8245894014ad65604d17ad4898f (diff)
parent65d99855583a21b6ea511ea74aa52318d0a1e5b2 (diff)
Merge release-20200622.1-55-g65d998555 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl')
-rw-r--r--pkg/sentry/fsimpl/gofer/special_file.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkg/sentry/fsimpl/gofer/special_file.go b/pkg/sentry/fsimpl/gofer/special_file.go
index a016cbae1..2b381af05 100644
--- a/pkg/sentry/fsimpl/gofer/special_file.go
+++ b/pkg/sentry/fsimpl/gofer/special_file.go
@@ -235,8 +235,5 @@ func (fd *specialFileFD) Seek(ctx context.Context, offset int64, whence int32) (
// Sync implements vfs.FileDescriptionImpl.Sync.
func (fd *specialFileFD) Sync(ctx context.Context) error {
- if !fd.vfsfd.IsWritable() {
- return nil
- }
- return fd.handle.sync(ctx)
+ return fd.dentry().syncSharedHandle(ctx)
}