[libvirt] [PATCH]lxc: mount dir as readonly if ownership couldn't be known

Chen Hanxiao chenhanxiao at cn.fujitsu.com
Tue Nov 12 11:33:32 UTC 2013



> -----Original Message-----
> From: Daniel P. Berrange [mailto:berrange at redhat.com]
> Sent: Tuesday, November 12, 2013 6:39 PM
> To: Chen Hanxiao
> Cc: libvir-list at redhat.com
> Subject: Re: [libvirt] [PATCH]lxc: mount dir as readonly if ownership couldn't be
> known
> 
> On Tue, Nov 12, 2013 at 05:51:45PM +0800, Chen Hanxiao wrote:
> > From: Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
> >
> > We bind mount some dir from host to guest.
> > With userns enabled, if we couldn't know
> > the dir's ownership, it's better to
> > mount them as readonly.
> 
> No, if the user has requested the mount to be read-write and we can
> not do that, we should fail, not silently change to a read-only
> mount.
> 
Thanks. New patch will come soon.






More information about the libvir-list mailing list