| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
| tech:notes_namespaces_unshare_mount_bind_shared [2025/10/10 09:23] – Jean-Baptiste | tech:notes_namespaces_unshare_mount_bind_shared [2026/07/03 16:15] (Version actuelle) – Jean-Baptiste |
|---|
| | <!DOCTYPE markdown> |
| | {{tag>Brouillon Mount Namespace}} |
| | |
| | # Notes namespaces unshare mount bind shared |
| | |
| | Voir : |
| | * https://docs.docker.com/engine/storage/bind-mounts/#configure-bind-propagation |
| | * https://www.baeldung.com/linux/bind-mounts |
| | * https://blog.stephane-robert.info/docs/admin-serveurs/linux/namespaces/ |
| | * https://github.com/docker/for-mac/issues/3431 |
| | * https://abdelouahabmbarki.com/linux-mount-namespaces-a-closer-look-at-isolated-file-system-views/ |
| | * https://unix.stackexchange.com/questions/710971/how-do-you-get-the-child-pid-of-unshare-when-using-fork-for-nsenter-t-pid |
| | * https://www.gabriel.urdhr.fr/2022/12/03/entering-podman-namespaces/ |
| | * https://unix.stackexchange.com/questions/710971/how-do-you-get-the-child-pid-of-unshare-when-using-fork-%20for-nsenter-t-pid |
| | * https://connect.ed-diamond.com/GNU-Linux-Magazine/glmf-247/a-la-decouverte-des-namespaces-mount-et-uts |
| | * https://superuser.com/questions/165116/mount-dev-proc-sys-in-a-chroot-environment |
| | * https://lwn.net/Articles/690679/ |
| | * https://stackoverflow.com/questions/56254904/why-can-a-process-launched-with-unshare-m-affect-the-mounts-in-the-host |
| | * https://www.redhat.com/en/blog/mount-namespaces |
| | * https://people.kernel.org/brauner/mounting-into-mount-namespaces |
| | * https://unix.stackexchange.com/questions/594545/can-i-move-mount-to-other-mount-namespace |
| | * https://github.com/SofianeHamlaoui/CVE-2022-0492-Checker/blob/main/escape-check.sh |
| | |
| | |
| | ## Autres |
| | |
| | ~~~bash |
| | findmnt -o TARGET,PROPAGATION /opt |
| | |
| | cat /proc/1/mountinfo |
| | ~~~ |
| | |
| | |
| | ## Pb |
| | |
| | ### Err WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers |
| | |
| | ~~~ |
| | $ podman pull docker.io/hadolint/hadolint |
| | WARN[0001] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers |
| | ~~~ |
| | |
| | Solution |
| | ~~~bash |
| | sudo mount --make-shared / |
| | ~~~ |
| | |
| | |
| | FIXME |
| | |
| |