mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
daf9664eb4
This was always the intended behaviour but commit72fbb34f50("rootfs: switch to fd-based handling of mountpoint targets") regressed it when adding a mechanism to create a file handle to the target if it didn't already exist (causing the later stat to always succeed). A lot of people depend on this functionality, so add some tests to make sure we don't break it in the future. Fixes:72fbb34f50("rootfs: switch to fd-based handling of mountpoint targets") Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (cherry picked from commit9a9719eeb4) Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>