From 5710aaa670a14cbbe4da0e8fe64314a55f14a015 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 9 Jun 2021 15:41:58 +0300 Subject: Make proc_reauthenticate () recreate proc port And add proc_complete_reauthentication () --- exec/exec.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'exec/exec.c') diff --git a/exec/exec.c b/exec/exec.c index 43760321..27d8abdf 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -1400,6 +1400,13 @@ do_exec (file_t file, if (e.error) goto out; + e.error = proc_complete_reauthentication (newproc); + if (e.error) + { + mach_port_deallocate (mach_task_self (), newproc); + goto out; + } + assert_backtrace (ports_replaced[INIT_PORT_PROC]); mach_port_deallocate (mach_task_self (), boot->portarray[INIT_PORT_PROC]); -- cgit v1.2.3