Skip to content

Commit

Permalink
[CWS] clean pidToMounts when removing mount (#20906)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux authored Nov 17, 2023
1 parent 6fb1d05 commit 6359a37
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/security/resolvers/mount/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ func (mr *Resolver) delete(mount *model.Mount) {
openQueue = append(openQueue, child)
}
}

for _, mounts := range mr.pidToMounts {
delete(mounts, mount.MountID)
}
}
}

Expand Down

0 comments on commit 6359a37

Please sign in to comment.