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] hurd: make the protected payload changes less intrusive

2014-12-12 Thread Samuel Thibault
Justus Winter, le Fri 12 Dec 2014 18:44:28 +0100, a écrit : > The changes to `hurd_types.defs' caused the glibc build to fail. > Guard the problematic parts with `HURD_SERVER' similar how it is done > in GNU Mach. Ack, thanks! > * Makeconf: Define `HURD_SERVER' when preprocessing the RPC > defini

[PATCH hurd] hurd: make the protected payload changes less intrusive

2014-12-12 Thread Justus Winter
The changes to `hurd_types.defs' caused the glibc build to fail. Guard the problematic parts with `HURD_SERVER' similar how it is done in GNU Mach. * Makeconf: Define `HURD_SERVER' when preprocessing the RPC definitions for the server side. * hurd/hurd_types.defs: Guard problematic parts with `HUR

Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd types

2014-12-12 Thread Samuel Thibault
Justus Winter, le Fri 12 Dec 2014 10:21:43 +0100, a écrit : > Hm. Maybe we can check whether we're building server stubs, and only > apply the payload magic then. Gnumach does something similar with the > KERNEL_SERVER macro. Indeed, we could simply do: > > diff --git a/Makeconf b/Makeconf > in

Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd types

2014-12-12 Thread Justus Winter
Quoting Samuel Thibault (2014-12-12 01:08:44) > Justus Winter, le Thu 27 Nov 2014 14:19:07 +0100, a écrit : > > +#ifdef HURD_DEFAULT_PAYLOAD_TO_PORT > > +#if HURD_DEFAULT_PAYLOAD_TO_PORT > > +/* Any non-numeric value will fail this test. If 1 (or any number) is > > + given, do not inject the def