1
0
mirror of https://github.com/containers/youki synced 2024-11-22 17:02:00 +01:00
youki/tests
AngrySean d07159691d
fix(libcontainer) no_pivot args is not used (#2923)
* Support setting no_pivot_root for create and run command

Signed-off-by: Vanient <xiadanni1@huawei.com>

* fix: mount move before choot

Move the rootfs to the root of the host filesystem before chrooting,
this is equivalent to pivot_root, if don't move mount first, we will
not see the new rootfs when exec into the container

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>

* fix(chroot): ensure mount occurs before chroot to mimic pivot_root behavior

Move the mount operation to occur before calling chroot to better simulate the effect of pivot_root.
Add a check to confirm if the current process is running inside an isolated mount namespace, ensuring proper mount handling.

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>

* implement intergration test for no-pivot

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>

* fix: add comments to no-pivot related code

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>

* fix(lint): fix format

Signed-off-by: xujihui1985 <xujihui1985@gmail.com>

---------

Signed-off-by: Vanient <xiadanni1@huawei.com>
Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
Co-authored-by: Vanient <xiadanni1@huawei.com>
2024-10-29 09:53:05 +05:30
..
contest fix(libcontainer) no_pivot args is not used (#2923) 2024-10-29 09:53:05 +05:30
dind add docker-in-docker e2e test (#2645) 2024-01-20 10:16:08 +09:00
k8s Add the test with kind to github action 2023-06-11 02:05:03 +00:00
oci-runtime-tests/src/github.com/opencontainers Name the test tools contest (#2486) 2024-01-12 14:28:47 +05:30
rootless-tests Fix cgroups determination in exec implementation (#2720) 2024-04-27 21:49:58 +09:00
.gitignore Refactor test dir structure (#2421) 2023-10-10 21:00:02 +09:00