Skip to content

Commit

Permalink
clean pidToMounts when removing mount
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcacheux committed Nov 16, 2023
1 parent 2875643 commit 54db621
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 54db621

Please sign in to comment.