diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:03:53 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-07-08 01:03:53 +0000 |
commit | ca958048e8442eb700ee72d9fabebe85ed845d43 (patch) | |
tree | 59fc6ecadc0cc22575733137a89fcc9aab987c3a | |
parent | 5e60005ee48bf00b56ccf8da58df87aaff68d8a6 (diff) |
(S_proc_reauthenticate): Don't use unsafe MOVE_SEND in user-side
interruptible RPC.
-rw-r--r-- | proc/mgt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |