Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Eric W. Biederman
Oren Laadan <[EMAIL PROTECTED]> writes: > Two comments: > > 1) Does it ever make any sense to clone the IPC namespace *without* doing > so also for the MQ namespace or vice versa ? Unless there is a good > reason for doing so, a single CLONE_IPCMQ flag would suffice. SYSVIPC and POSIX IPC are di

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Oren Laadan
Cedric Le Goater wrote: >>> Index: 2.6.24-rc3-mm2/include/linux/sched.h >>> === >>> --- 2.6.24-rc3-mm2.orig/include/linux/sched.h >>> +++ 2.6.24-rc3-mm2/include/linux/sched.h >>> @@ -27,6 +27,7 @@ >>> #define CLONE_NEWUSER

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Eric W. Biederman
Cedric Le Goater <[EMAIL PROTECTED]> writes: > From: Cedric Le Goater <[EMAIL PROTECTED]> > > This patch includes the mqueue namespace in the nsproxy object. It > also adds the support of unshare() and clone() with a new clone flag > CLONE_NEWMQ (1 bit left in the clone flags !) > > CLONE_NEWMQ

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Serge E. Hallyn
Quoting Andrew Morton ([EMAIL PROTECTED]): > On Thu, 29 Nov 2007 11:28:28 +0100 Cedric Le Goater <[EMAIL PROTECTED]> wrote: > > > >> Index: 2.6.24-rc3-mm2/include/linux/sched.h > > >> === > > >> --- 2.6.24-rc3-mm2.orig/include/linux/s

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Andrew Morton
On Thu, 29 Nov 2007 11:28:28 +0100 Cedric Le Goater <[EMAIL PROTECTED]> wrote: > >> Index: 2.6.24-rc3-mm2/include/linux/sched.h > >> === > >> --- 2.6.24-rc3-mm2.orig/include/linux/sched.h > >> +++ 2.6.24-rc3-mm2/include/linux/sched.h

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Cedric Le Goater
>> Index: 2.6.24-rc3-mm2/include/linux/sched.h >> === >> --- 2.6.24-rc3-mm2.orig/include/linux/sched.h >> +++ 2.6.24-rc3-mm2/include/linux/sched.h >> @@ -27,6 +27,7 @@ >> #define CLONE_NEWUSER 0x1000 /* New user

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-29 Thread Cedric Le Goater
>> Index: 2.6.24-rc3-mm2/kernel/fork.c >> === >> --- 2.6.24-rc3-mm2.orig/kernel/fork.c >> +++ 2.6.24-rc3-mm2/kernel/fork.c >> @@ -1004,6 +1004,13 @@ static struct task_struct *copy_process( >> if ((clone_flags & CLONE_SIGHAND) &&

Re: [patch -mm 2/4] mqueue namespace : add unshare support

2007-11-28 Thread Pavel Emelyanov
Cedric Le Goater wrote: > From: Cedric Le Goater <[EMAIL PROTECTED]> > > This patch includes the mqueue namespace in the nsproxy object. It > also adds the support of unshare() and clone() with a new clone flag > CLONE_NEWMQ (1 bit left in the clone flags !) > > CLONE_NEWMQ is required to be c