summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-12-17 13:53:16 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-17 13:53:16 -0800
commit3ab90ecf256248d4147694df3a884572c1e8074b (patch)
tree7f7eab62a1daf9d071bbc7aaa6d42129630feb29 /pkg
parente416724fb3a92b1751d370601e7b8326d4228688 (diff)
parentbd5c7bf58dd656dc16b920b48a346ef08f1efba8 (diff)
Merge pull request #1394 from zhuangel:bindlock
PiperOrigin-RevId: 286051631
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/fs/inode_overlay.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/inode_overlay.go b/pkg/sentry/fs/inode_overlay.go
index 63a991beb..13d11e001 100644
--- a/pkg/sentry/fs/inode_overlay.go
+++ b/pkg/sentry/fs/inode_overlay.go
@@ -436,7 +436,7 @@ func overlayRename(ctx context.Context, o *overlayEntry, oldParent *Dirent, rena
}
func overlayBind(ctx context.Context, o *overlayEntry, parent *Dirent, name string, data transport.BoundEndpoint, perm FilePermissions) (*Dirent, error) {
- if err := copyUp(ctx, parent); err != nil {
+ if err := copyUpLockedForRename(ctx, parent); err != nil {
return nil, err
}