summaryrefslogtreecommitdiff
path: root/proc
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-07-08 01:03:53 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-07-08 01:03:53 +0000
commitca958048e8442eb700ee72d9fabebe85ed845d43 (patch)
tree59fc6ecadc0cc22575733137a89fcc9aab987c3a /proc
parent5e60005ee48bf00b56ccf8da58df87aaff68d8a6 (diff)
(S_proc_reauthenticate): Don't use unsafe MOVE_SEND in user-side
interruptible RPC.
Diffstat (limited to 'proc')
-rw-r--r--proc/mgt.c3
1 files changed, 2 insertions, 1 deletions
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);