]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/kern/kern_fork.c
xnu-1504.9.26.tar.gz
[apple/xnu.git] / bsd / kern / kern_fork.c
index 666748b5235154bbce901787a3435670a11774c4..a5b1350d382d4d6467ab7e36a7bd48e533c1df62 100644 (file)
@@ -1277,7 +1277,7 @@ retry:
        TAILQ_INIT(&child_proc->p_aio_doneq);
 
        /* Inherit the parent flags for code sign */
-       child_proc->p_csflags = parent_proc->p_csflags;
+       child_proc->p_csflags = (parent_proc->p_csflags & ~CS_KILLED);
 
        /*
         * All processes have work queue locks; cleaned up by
@@ -1375,6 +1375,8 @@ uthread_zone_init(void)
                                        THREAD_CHUNK * sizeof(struct uthread),
                                        "uthreads");
                uthread_zone_inited = 1;
+
+               zone_change(uthread_zone, Z_NOENCRYPT, TRUE);
        }
 }