OpenVZ Forum - RDF feed
type: channel
items: Acks for 3 pid-namespace patches
items: [PATCH 1/3]: Rename pspace to pid-namespace (was: Acks for 3 pid-namespace patches)
items: [PATCH 2/3] add pid-namespace to nsproxy (was: Acks for 3 pid-namespace patches)
items: [PATCH 3/3] Add child-reaper to pid-namespace (was: Acks for 3 pid-namespace patches)

Acks for 3 pid-namespace patches
type: item
description: Wanted to check if we have a consensus on following three patches and see if we are ready to send them to akpm and LKML. http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-rename-pspace-to-pid-namespace.patch http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-pid-namespace-to-nsproxy.patch http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-child-reaper-to-pid-namespace.patch For the last patch add-child-reaper-to-pid-namespace, there was discussion on how to implement killing all processes in a pid-namespace when the reaper dies, but can we address that in a follow-on patch ? Suka _______________________________________________ Containers mailing list Containers@lists.osdl.org https://lists.osdl.org/mailman/listinfo/containers
creator: Sukadev Bhattiprolu
date: 2006-09-19T00:01:04-00:00

[PATCH 1/3]: Rename pspace to pid-namespace (was: Acks for 3 pid-namespace patches)
type: item
description: Sukadev Bhattiprolu [sukadev@us.ibm.com] wrote: | | Wanted to check if we have a consensus on following three patches and | see if we are ready to send them to akpm and LKML. | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-rename-pspace-to-pid-namespace.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-pid-namespace-to-nsproxy.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-child-reaper-to-pid-namespace.patch | | For the last patch add-child-reaper-to-pid-namespace, there was discussion | on how to implement killing all processes in a pid-namespace when | the reaper dies, but can we address that in a follow-on patch ? | And here is the first patch, (renmae-pspace). _______________________________________________ Containers mailing list Containers@lists.osdl.org https://lists.osdl.org/mailman/listinfo/containers
creator: Sukadev Bhattiprolu
date: 2006-09-19T00:25:40-00:00

[PATCH 2/3] add pid-namespace to nsproxy (was: Acks for 3 pid-namespace patches)
type: item
description: Sukadev Bhattiprolu [sukadev@us.ibm.com] wrote: | | Wanted to check if we have a consensus on following three patches and | see if we are ready to send them to akpm and LKML. | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-rename-pspace-to-pid-namespace.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-pid-namespace-to-nsproxy.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-child-reaper-to-pid-namespace.patch | | For the last patch add-child-reaper-to-pid-namespace, there was discussion | on how to implement killing all processes in a pid-namespace when | the reaper dies, but can we address that in a follow-on patch ? | | Suka Here is the second one, add-pid-namespace-to-nsproxy From: Sukadev Bhattiprolu <sukadev@us.ibm.com> Subject: add pid_namespace to nsproxy Add a notion of pid namespace to nsproxy (and by extension, to task_struct). Currently there is only one pid namespace, init_pid_ns and all tasks belong to this pid namespace. When a new task is created, it inherits its parent's pid namespace (in copy_process()). This is based on Eric Biederman's patch: http://lkml.org/lkml/2006/2/6/285 Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> Cc: containers@lists.osdl.org include/linux/init_task.h | 2 ++ include/linux/nsproxy.h | 2 ++ include/linux/pid_namespace.h | 15 +++++++++++++++ kernel/nsproxy.c | 12 ++++++++++++ 4 files changed, 31 insertions(+) Index: lx26-18-rc6-mm2/include/linux/init_task.h =================================================================== --- lx26-18-rc6-mm2.orig/include/linux/init_task.h 2006-09-18 15:46:12.000000000 -0700 +++ lx26-18-rc6-mm2/include/linux/init_task.h 2006-09-18 16:04:44.000000000 -…
creator: Sukadev Bhattiprolu
date: 2006-09-19T00:28:09-00:00

[PATCH 3/3] Add child-reaper to pid-namespace (was: Acks for 3 pid-namespace patches)
type: item
description: Sukadev Bhattiprolu [sukadev@us.ibm.com] wrote: | | Wanted to check if we have a consensus on following three patches and | see if we are ready to send them to akpm and LKML. | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-rename-pspace-to-pid-namespace.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-pid-namespace-to-nsproxy.patch | | http://www.sr71.net/patches/2.6.18/2.6.18-rc6-mm2/2.6.18-rc6-mm2-lxc1/broken-out/pid-namespace-add-child-reaper-to-pid-namespace.patch | | For the last patch add-child-reaper-to-pid-namespace, there was discussion | on how to implement killing all processes in a pid-namespace when | the reaper dies, but can we address that in a follow-on patch ? | | Suka Finally, here is the patch to add child-reaper to pid_namespace. From: Sukadev Bhattiprolu <sukadev@us.ibm.com> Subject: add child reaper to pid_namespace Add per-pid-space child-reaper. This is needed so processes are reaped within the same pid space and do not spill over to the parent pid space. Its also needed so containers preserve existing semantic that pid == 1 would reap orphaned children. This is based on Eric Biederman's patch: http://lkml.org/lkml/2006/2/6/285 Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com> Signed-off-by: Cedric Le Goater <clg@fr.ibm.com> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Dave Hansen <haveblue@us.ibm.com> Cc: Serge Hallyn <serue@us.ibm.com> fs/exec.c | 5 +++-- include/linux/pid.h | 5 +++-- include/linux/pid_namespace.h | 9 +++++---- include/linux/sched.h | 1 - init/main.c | 5 ++--- kernel/exit.c | 26 ++++++++++++++++++-------- kernel/pid.c | 3 ++- kernel/signal.c | 10 ++++++++-- 8 files changed, 41 insertions(+), 23 deletions(-) Index: lx26-18-rc6-mm2/init/main.c =================================================================== --- lx26-18-rc6-mm2.orig/init/main.c 2006-09-18 15:46:29.000000000 -0700 +++ lx26-18-rc6-mm2/init/ma…
creator: Sukadev Bhattiprolu
date: 2006-09-19T00:29:34-00:00