Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-18 Thread Chen Hanxiao
> -Original Message- > From: Daniel P. Berrange [mailto:berra...@redhat.com] > Sent: Monday, November 18, 2013 11:57 PM > To: Chen Hanxiao > Cc: libvir-list@redhat.com > Subject: Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be > known

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-18 Thread Daniel P. Berrange
> Subject: Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't > > be > > known > > > > On Wed, Nov 13, 2013 at 04:51:43PM +0800, Chen Hanxiao wrote: > > > From: Chen Hanxiao > > > > > > If we enable userns, we cou

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-17 Thread Gao feng
M >>> To: Chen Hanxiao >>> Cc: libvir-list@redhat.com >>> Subject: Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't >>> be >>> known >>> >>> On Wed, Nov 13, 2013 at 04:51:43PM +0800, Chen Hanxiao wrote: >>

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-15 Thread Daniel P. Berrange
> Subject: Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't > > be > > known > > > > On Wed, Nov 13, 2013 at 04:51:43PM +0800, Chen Hanxiao wrote: > > > From: Chen Hanxiao > > > > > > If we enable userns, we cou

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-14 Thread Chen Hanxiao
> -Original Message- > From: Daniel P. Berrange [mailto:berra...@redhat.com] > Sent: Wednesday, November 13, 2013 6:35 PM > To: Chen Hanxiao > Cc: libvir-list@redhat.com > Subject: Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be > kno

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-13 Thread Daniel P. Berrange
On Wed, Nov 13, 2013 at 04:51:43PM +0800, Chen Hanxiao wrote: > From: Chen Hanxiao > > If we enable userns, we could bind mount > some dirs from host to guest, which don't belong to > the target mapped uid/gid. > > Such as we could bind mount root's dirs to guest. > What is worse, we could even

Re: [libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-13 Thread Gao feng
On 11/13/2013 04:51 PM, Chen Hanxiao wrote: > From: Chen Hanxiao > > If we enable userns, we could bind mount > some dirs from host to guest, which don't belong to > the target mapped uid/gid. > > Such as we could bind mount root's dirs to guest. > What is worse, we could even modify root's file

[libvirt] [PATCH v2]lxc: don't mount dir if ownership couldn't be known

2013-11-13 Thread Chen Hanxiao
From: Chen Hanxiao If we enable userns, we could bind mount some dirs from host to guest, which don't belong to the target mapped uid/gid. Such as we could bind mount root's dirs to guest. What is worse, we could even modify root's files in that bind dir inside container. So if we couldn't know