Index: kern_prot.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_prot.c,v retrieving revision 1.82 diff -u -r1.82 kern_prot.c --- kern_prot.c 2001/04/12 22:46:07 1.82 +++ kern_prot.c 2001/04/13 02:13:36 @@ -1084,8 +1084,8 @@ */ if (p1->p_cred->p_ruid != p2->p_cred->p_ruid && p1->p_ucred->cr_uid != p2->p_cred->p_ruid && - p1->p_cred->p_ruid != p2->p_ucred->cr_uid && - p1->p_ucred->cr_uid != p2->p_ucred->cr_uid) { + p1->p_cred->p_ruid != p2->p_cred->p_svuid && + p1->p_ucred->cr_uid != p2->p_cred->p_svuid) { /* Not permitted, try privilege. */ error = suser_xxx(NULL, p1, PRISON_ROOT); if (error) @@ -1106,9 +1106,7 @@ if (p1->p_cred->p_ruid != p2->p_cred->p_ruid && p1->p_cred->p_ruid != p2->p_cred->p_svuid && p1->p_ucred->cr_uid != p2->p_cred->p_ruid && - p1->p_ucred->cr_uid != p2->p_cred->p_svuid && - p1->p_cred->p_ruid != p2->p_ucred->cr_uid && - p1->p_ucred->cr_uid != p2->p_ucred->cr_uid) { + p1->p_ucred->cr_uid != p2->p_cred->p_svuid) { /* Not permitted, try privilege. */ error = suser_xxx(NULL, p1, PRISON_ROOT); if (error)