Can't get mount namespaces to behave as expected
Can't get mount namespaces to behave as expected
Posted Mar 5, 2015 2:04 UTC (Thu) by apollock (guest, #14629)Parent article: Namespaces in operation, part 4: more on PID namespaces
I'm creating a new everything, i.e.
sudo unshare --mount --uts --net --pid --fork --mount-proc /bin/bash
sudo /tmp/newns --uts --mount --pid --init --net /bin/bash
sudo /tmp/ns_child_exec -p -m /tmp/simple_init
and then unmounting a filesystem from that shell, and it's getting unmounted in another shell that hasn't been interacting with the namespace, which isn't what I would have expected? Similarly, if I mount /proc in the last two example invocations above, it clobbers the systemwide /proc mount with what's going on inside my new PID namespace. Also not what I would have expected?
I'm using 3.19.0
