From ca958048e8442eb700ee72d9fabebe85ed845d43 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Mon, 8 Jul 1996 01:03:53 +0000 Subject: (S_proc_reauthenticate): Don't use unsafe MOVE_SEND in user-side interruptible RPC. --- proc/mgt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proc/mgt.c b/proc/mgt.c index fb58899d..f3f97e15 100644 --- a/proc/mgt.c +++ b/proc/mgt.c @@ -100,7 +100,7 @@ S_proc_reauthenticate (struct proc *p, mach_port_t rendport) err = auth_server_authenticate (authserver, - rendport, MACH_MSG_TYPE_MOVE_SEND, + rendport, MACH_MSG_TYPE_COPY_SEND, MACH_PORT_NULL, MACH_MSG_TYPE_COPY_SEND, &gen_uids, &ngen_uids, &aux_uids, &naux_uids, @@ -108,6 +108,7 @@ S_proc_reauthenticate (struct proc *p, mach_port_t rendport) &aux_gids, &naux_gids); if (err) return err; + mach_port_deallocate (mach_task_self (), rendport); if (!--p->p_id->i_refcnt) free_ids (p->p_id); -- cgit v1.2.3