-----Original Message-----
From: Daniel P. Berrange [mailto:berrange@redhat.com]
Sent: Tuesday, November 12, 2013 6:39 PM
To: Chen Hanxiao
Cc: libvir-list(a)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(a)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.