Re: [PATCH 1/5] initmpfs: replace MS_NOUSER in initramfs

From: Rob Landley
Date: Sat Jun 29 2013 - 23:09:33 EST


On 06/29/2013 08:15:40 PM, Eric W. Biederman wrote:
Rob Landley <rob@xxxxxxxxxxx> writes:

> From: Rob Landley <rob@xxxxxxxxxxx>
>
> Mounting MS_NOUSER prevents --bind mounts from rootfs. Prevent new rootfs
> mounts with a different mechanism that doesn't affect bind mounts.

I don't see patches 4 and 5 so I don't know if you have covered this
elsewhere but a very important part of the reason for MS_NOUSER is to
prevent unmounting of rootfs.

The entire vfs breaks if you are allowed to unmount rootfs, and it
appears this patch is allowing that.

I mean I tried "mount --move / home". (--bind worked.)

Long day...

Rob--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/