diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-08-31 15:38:28 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-08-31 15:38:28 +0000 |
commit | e31f8a86fe0c51d2d41e6a78012efc5aaeec9e10 (patch) | |
tree | e85e7ecaf4b4f067b4a870c73e045ff90214fd3b | |
parent | e94522121c2f7df4dcd9d57e3ea7a2174018e4a5 (diff) |
Formerly mgt.c.~19~
-rw-r--r-- | proc/mgt.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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. */ |