Always succeed if the target process is the same as the requesting process.

This commit is contained in:
Dag-Erling Smørgrav 2001-10-07 20:06:03 +00:00
parent 26c293c7ee
commit 23fad5b6c9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84636

View file

@ -1534,6 +1534,9 @@ p_candebug(struct proc *p1, struct proc *p2)
{
int error;
if (p1 == p2)
return (0);
if ((error = prison_check(p1->p_ucred, p2->p_ucred)))
return (error);