mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
vfs: Don't allow to mount anything on top of detached mounts
PiperOrigin-RevId: 376932659
This commit is contained in:
@@ -220,7 +220,7 @@ func (vfs *VirtualFilesystem) ConnectMountAt(ctx context.Context, creds *auth.Cr
|
||||
vdDentry := vd.dentry
|
||||
vdDentry.mu.Lock()
|
||||
for {
|
||||
if vdDentry.dead {
|
||||
if vd.mount.umounted || vdDentry.dead {
|
||||
vdDentry.mu.Unlock()
|
||||
vfs.mountMu.Unlock()
|
||||
vd.DecRef(ctx)
|
||||
|
||||
Reference in New Issue
Block a user