]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/vm/vm_unix.c
xnu-201.14.tar.gz
[apple/xnu.git] / bsd / vm / vm_unix.c
index 77d7d02dcae1a4ceb6f444d4597dc04e92f8a0b7..29261f2c829ae58509de27eaadb0675b4fa5686f 100644 (file)
@@ -292,7 +292,8 @@ task_for_pid(target_tport, pid, t)
        if (
                ((p = pfind(pid)) != (struct proc *) 0)
                && (p1 != (struct proc *) 0)
-               && ((p->p_ucred->cr_uid == p1->p_ucred->cr_uid)
+               && (((p->p_ucred->cr_uid == p1->p_ucred->cr_uid) && 
+                       ((p->p_cred->p_ruid == p1->p_cred->p_ruid)))
                || !(suser(p1->p_ucred, &p1->p_acflag)))
                && (p->p_stat != SZOMB)
                ) {