mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-09 15:24:54 -04:00
fuse-overlays: fix interaction of unlink(2) with readdir(2)
fix an interesting interaction between unlink(2) and readdir(2) that can confuse the cache. If a file is unlinked before the readdir(2) is done, it is not removed from the list generated when the directory was first opened. Thus the result is that readdir(2) will return the file even if it was unlinked and moved to the work dir until the cache is released. The fix is to skip dentries that are hidden while iterating the list. Closes: https://github.com/containers/libpod/issues/2342 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
ff65edefc7
commit
bbf631d046
Loading…
x
Reference in New Issue
Block a user