mirror of
https://github.com/opencontainers/runc.git
synced 2026-02-05 09:46:08 +01:00
We intentionally broke this in commitd40b3439a9("rootfs: switch to fd-based handling of mountpoint targets") under the assumption that most users do not need this feature. Sadly it turns out they do, and so commit3f925525b4("rootfs: re-allow dangling symlinks in mount targets") added a hotfix to re-add this functionality. This patch adds some much-needed tests for this behaviour, since it seems we are going to need to keep this for compatibility reasons (at least until runc v2...). Co-developed-by: lifubang <lifubang@acmcoder.com> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com> (cherry picked from commit15d7c214cd) Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>