summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-08-31 15:38:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-08-31 15:38:28 +0000
commite31f8a86fe0c51d2d41e6a78012efc5aaeec9e10 (patch)
treee85e7ecaf4b4f067b4a870c73e045ff90214fd3b
parente94522121c2f7df4dcd9d57e3ea7a2174018e4a5 (diff)
Formerly mgt.c.~19~
-rw-r--r--proc/mgt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/proc/mgt.c b/proc/mgt.c
index ce9567ab..c6d23e74 100644
--- a/proc/mgt.c
+++ b/proc/mgt.c
@@ -214,13 +214,13 @@ S_proc_reassign (struct proc *p,
if (foo)
mach_port_deallocate (mach_task_self (), foo);
- /* For security, we need to get a new request port */
+ /* For security, we need use the request port from STUBP, and
+ not inherit this state. */
mach_port_mod_refs (mach_task_self (), p->p_reqport,
MACH_PORT_RIGHT_RECEIVE, -1);
- mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE,
- &p->p_reqport);
- mach_port_move_member (mach_task_self (), p->p_reqport,
- request_portset);
+ p->p_reqport = stubp->p_reqport;
+ mach_port_mod_refs (mach_task_self (), p->p_reqport,
+ MACH_PORT_RIGHT_RECEIVE, 1);
/* Enqueued messages might refer to the old task port, so
destroy them. */