]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/vm/vm_unix.c
xnu-1228.7.58.tar.gz
[apple/xnu.git] / bsd / vm / vm_unix.c
index 54e6d30c6f1ea5c7c5358da6a38d1f661a94550d..094b6258c16197787fb5dfb7736c8e1a8a90c742 100644 (file)
@@ -527,6 +527,7 @@ task_for_pid(
        if (p->task != TASK_NULL) {
                /* If we aren't root and target's task access port is set... */
                if (!kauth_cred_issuser(kauth_cred_get()) &&
+                       p != current_proc() &&
                        (task_get_task_access_port(p->task, &tfpport) == 0) &&
                        (tfpport != IPC_PORT_NULL)) {