Re: [PATCH v3 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-02 Thread Mateusz Guzik
On Fri, Aug 01, 2014 at 11:55:12PM -0400, Richard Yao wrote: > `mount -o bind,ro ...` suffers from a silent failure where the readonly > flag is ignored. The bind mount will be created rw whenever the target > is rw. Users typically workaround this by remounting readonly, but that > does not work

Re: [PATCH v3 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-02 Thread Mateusz Guzik
On Fri, Aug 01, 2014 at 11:55:12PM -0400, Richard Yao wrote: `mount -o bind,ro ...` suffers from a silent failure where the readonly flag is ignored. The bind mount will be created rw whenever the target is rw. Users typically workaround this by remounting readonly, but that does not work when

[PATCH v3 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Richard Yao
`mount -o bind,ro ...` suffers from a silent failure where the readonly flag is ignored. The bind mount will be created rw whenever the target is rw. Users typically workaround this by remounting readonly, but that does not work when you want to define readonly bind mounts in fstab. This is a

[PATCH v3 1/1] vfs: Respect MS_RDONLY at bind mount creation

2014-08-01 Thread Richard Yao
`mount -o bind,ro ...` suffers from a silent failure where the readonly flag is ignored. The bind mount will be created rw whenever the target is rw. Users typically workaround this by remounting readonly, but that does not work when you want to define readonly bind mounts in fstab. This is a