mysys / # mount | grep /mnt
mysys / # python2.7 /usr/bin/space execute --mnt bash -c 'mount -t tmpfs tmpfs /mnt'
mysys / # mount | grep /mnt
tmpfs on /mnt type tmpfs (rw,relatime)
From the above experiment, we can see that the /mnt mount is not isolated in the "mount namespace" of the new process.
unshare behaves correctly on my system:
mysys / # mount | grep /mnt
mysys / # unshare -m bash -c 'mount -t tmpfs tmpfs /mnt'
mysys / # mount | grep /mnt
It is very ugly to call "unshare" in my python script compared to the pyspaces.Container API.
Although the experiment is done with CLI, but I know the API behaves the same.
From the above experiment, we can see that the /mnt mount is not isolated in the "mount namespace" of the new process.
unshare behaves correctly on my system:
It is very ugly to call "unshare" in my python script compared to the pyspaces.Container API.
Although the experiment is done with CLI, but I know the API behaves the same.