Hi Miklos,
so on the bright side I pulled this tree today and it compiled and
passed ltp with no problems.
But then I played around a bit and found I could do the following:
(hmm, i'm trying to remember the exact order :)
as root:
mmount --bind -o user=500 /home/hallyn/etc/ /home/hallyn/etc/
mount --bind /mnt /mnt
mount --make-rshared /mnt
mount --bind /dev /mnt/dev
as hallyn:
mmount --bind /mnt /home/hallyn/etc/mnt
/usr/src/mmount-0.3/mmount --bind mnt/dev mnt/src
Now /mnt/src contained /dev.
Is this what we want? Do we want to tell the admin it's his fault for
not somehow forcing a slave relationship between /mnt and
/home/hallyn/etc/mnt? Except I don't think he can do that preemptively,
it has to be done after hallyn does the mmount.
So does that mean that if non-root user X does:
mount a b
where b is user=X but a is not, then if a is shared we should force it
to be mounted as slave at b?
-serge
--