Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Venkateswararao Jujjuri (JV)
On 1/20/2011 1:45 PM, Stefan Hajnoczi wrote: > On Thu, Jan 20, 2011 at 9:15 PM, Venkateswararao Jujjuri (JV) > wrote: >> On 1/20/2011 12:59 AM, Stefan Hajnoczi wrote: >>> On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: After creating a file object, its permission and ownership

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Stefan Hajnoczi
On Thu, Jan 20, 2011 at 9:15 PM, Venkateswararao Jujjuri (JV) wrote: > On 1/20/2011 12:59 AM, Stefan Hajnoczi wrote: >> On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: >>> After creating a file object, its permission and ownership details are >>> updated >>> as per client's reques

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Stefan Hajnoczi
On Thu, Jan 20, 2011 at 2:48 PM, Daniel P. Berrange wrote: > On Thu, Jan 20, 2011 at 08:11:27PM +0530, M. Mohan Kumar wrote: >> On Thursday 20 January 2011 2:29:54 pm Stefan Hajnoczi wrote: >> > On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: >> >> > > -    if (lchown(rpath(fs_ctx,

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Venkateswararao Jujjuri (JV)
On 1/20/2011 12:59 AM, Stefan Hajnoczi wrote: > On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: >> After creating a file object, its permission and ownership details are >> updated >> as per client's request for both passthrough and none security model. But >> with >> chrooted env

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Daniel P. Berrange
On Thu, Jan 20, 2011 at 08:11:27PM +0530, M. Mohan Kumar wrote: > On Thursday 20 January 2011 2:29:54 pm Stefan Hajnoczi wrote: > > On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: > > > > -if (lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) { > > > -/* >

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread M. Mohan Kumar
On Thursday 20 January 2011 2:29:54 pm Stefan Hajnoczi wrote: > On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: > > -if (lchown(rpath(fs_ctx, path), credp->fc_uid, credp->fc_gid) < 0) { > > -/* > > - * If we fail to change ownership and if we are > > - *

Re: [Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-20 Thread Stefan Hajnoczi
On Tue, Jan 18, 2011 at 01:54:16PM +0530, M. Mohan Kumar wrote: > After creating a file object, its permission and ownership details are updated > as per client's request for both passthrough and none security model. But with > chrooted environment its not required for passthrough security model. M

[Qemu-devel] [V3 PATCH 7/8] virtio-9p: Move file post creation changes to none security model

2011-01-18 Thread M. Mohan Kumar
After creating a file object, its permission and ownership details are updated as per client's request for both passthrough and none security model. But with chrooted environment its not required for passthrough security model. Move all post file creation changes to none security model Signed-off-