Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!mtxinu!sybase!home!nk From: nk@home.sybase.com (Nicolai Kosche) Newsgroups: comp.sys.next Subject: Mach question (permissions on ports) Keywords: port mach thread fork permission Message-ID: <13082@sybase.sybase.com> Date: 31 May 91 15:56:33 GMT Expires: 14 Jun 91 07:00:00 GMT Sender: news@Sybase.COM Reply-To: nk@sybase.com (Nicolai Kosche) Organization: Sybase, Inc. Lines: 34 Hello, I am looking for some pointers in granting port permissions to a child process. I have done the following so far (read down in chronological order): Parent Process Child Process port_allocate port_set_backlog (not needed) netname_check_in fork sleep task_by_unix_pid (grant permission to task) msg_receive netname_look_up msg_send On the child's msg_send I get a permission error. Ports are not inherited by children. Paraphrasing: what mach calls do I use to grant my child process receive and/or send rights to the port owned by the parent process? MiG apparently sets permissions in its internal routines. I don't mind using MiG, but I need an asynchronous interface. Thanks a million for your help. Nicolai Kosche nk@sybase.com {pyramid,sun,mtxinu}!sybase!nk I speak only for myself and I do not reflect the views or position of Sybase. Anything included in this message is provided at your own risk.