]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_fork.c
xnu-517.12.7.tar.gz
[apple/xnu.git] / bsd / kern / kern_fork.c
index f8b8cf3d8c283a545e24b9f2d6814a1b4ddb5255..40a2275c1d68032106e9a57c2db34e27d92ecbe6 100644 (file)
@@ -315,6 +315,7 @@ fork1(p1, flags, retval)
        thread_dup(newth);
        /* p2 = newth->task->proc; */
        p2 = (struct proc *)(get_bsdtask_info(get_threadtask(newth)));
+       set_security_token(p2);         /* propagate change of PID */
 
        AUDIT_ARG(pid, p2->p_pid);