unshare -m does not work as expected
Kevin Wilson
wkevils at gmail.com
Fri Apr 26 11:50:01 UTC 2013
I am trying this simple sequence:
unshare -m /bin/bash
mount /dev/sd3 /mnt/sda3
then from a different terminal I run:
mount | grep sda2
And I see this mount (which was not mounted before running this mount command)
cat /proc/self/mountinfo | grep share (on the second terminal, and
also on the first) does not find anything.
So we don't have here a shared mount.
Now, I would expect not to see sda3 mounted on the second terminal.
I created a child with a different namespace in the first terminal.
Why do I see it ?
regards,
Kevin
More information about the ubuntu-users
mailing list