Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Joan Lledó
OK, I'll try with your design El 16/10/21 a les 18:06, Sergey Bugaev ha escrit: On Sat, Oct 16, 2021 at 6:54 PM Samuel Thibault wrote: Indeed, since it's the region that remembers which protection was allowed, we need a proxy there to enforce them. Right, that's also a good point. max_proect

Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Sergey Bugaev
On Sat, Oct 16, 2021 at 6:54 PM Samuel Thibault wrote: > Indeed, since it's the region that remembers which protection was > allowed, we need a proxy there to enforce them. Right, that's also a good point. max_proection can be less than 7 even if there never was a proxy. That is, one can do vm_m

Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Samuel Thibault
Sergey Bugaev, le sam. 16 oct. 2021 14:27:01 +0300, a ecrit: > On Sat, Oct 16, 2021 at 12:38 PM Joan Lledó wrote: > > The new interface needs to know about proxies, and if one range has been > > mapped using a proxy, it must return the proxy and not the original object, > > which could be used t

Re: libdirmgt, possibly dead code

2021-10-16 Thread Samuel Thibault
Hello, Andrea Monaco, le jeu. 14 oct. 2021 11:44:02 +0200, a ecrit: > it seems that directory libdirmgt in hurd is dead. It is ignored by > top-level Makefile, and it contains just a header file. Indeed, I have now dropped it. Samuel

Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Sergey Bugaev
On Sat, Oct 16, 2021 at 2:27 PM Sergey Bugaev wrote: > I don't think it should *ever* return the original object back. I'd > rather it always made a new proxy that internally references the > object and caps max_protection to that of the region. I also think there's a philosophical difference in

Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Sergey Bugaev
Hello! On Sat, Oct 16, 2021 at 12:38 PM Joan Lledó wrote: > The new interface needs to know about proxies, and if one range has been > mapped using a proxy, it must return the proxy and not the original object, > which could be used to bypass the proxy protection, that's why I needed a way > t

[PATCH] new interface: vm_pager

2021-10-16 Thread Joan Lledó
From: Joan Lledó Given a task and an address, it returns the pager used to map that address in that task. * include/mach/mach4.defs: new interface declaration: vm_pager * vm/memory_object_proxy.h: add declaration for proxy hash functions * vm/memory_object_proxy.c: implement proxy hash functions

Re: gnumach RPC: get info about the calling task

2021-10-16 Thread Joan Lledó
El 12/10/21 a les 20:32, Samuel Thibault ha escrit: > Sergey Bugaev, le mar. 12 oct. 2021 16:22:48 +0300, a ecrit: >> So in the case of vm_map-backed pager, it should matter whether you >> have a task port to the target task, not whether you *are* the target >> task. If someone has a task port to a