Re: [PATCH hurd 3/5] proc: implement `proc_make_task_namespace'

2014-12-12 Thread Justus Winter
Quoting David Michael (2014-12-12 23:01:57) > Hi, > > On Thu, Nov 13, 2014 at 7:26 AM, Justus Winter > <4win...@informatik.uni-hamburg.de> wrote: > > @@ -1008,9 +1069,42 @@ S_mach_notify_new_task (mach_port_t notify, > >childp = new_proc (task); > > } > > > > - /* XXX do something in

Re: [PATCH hurd 3/5] proc: implement `proc_make_task_namespace'

2014-12-12 Thread David Michael
Hi, On Thu, Nov 13, 2014 at 7:26 AM, Justus Winter <4win...@informatik.uni-hamburg.de> wrote: > @@ -1008,9 +1069,42 @@ S_mach_notify_new_task (mach_port_t notify, >childp = new_proc (task); > } > > - /* XXX do something interesting */ > + if (MACH_PORT_VALID (parentp->p_task_namespa

Re: [PATCH hurd 3/5] proc: implement `proc_make_task_namespace'

2014-12-09 Thread Samuel Thibault
Justus Winter, le Thu 13 Nov 2014 13:26:17 +0100, a écrit : > * proc/proc.h (struct proc): Add field `p_task_namespace'. > * proc/mgt.c (S_proc_child): Propagate `p_task_namespace' to child. > (allocate_proc): Initialize `p_task_namespace'. > (namespace_terminate): New function. > (process_has_exit

[PATCH hurd 3/5] proc: implement `proc_make_task_namespace'

2014-11-13 Thread Justus Winter
* proc/proc.h (struct proc): Add field `p_task_namespace'. * proc/mgt.c (S_proc_child): Propagate `p_task_namespace' to child. (allocate_proc): Initialize `p_task_namespace'. (namespace_terminate): New function. (process_has_exited): Reparent children of dead tasks in the namespace to the root proc