summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-07 20:06:03 +0000
committerdes <des@FreeBSD.org>2001-10-07 20:06:03 +0000
commit6eea6dc1d4f5db40f3dc480af266ecd685f624a2 (patch)
treecec0c28269de4167a5f4ed7a74d1abc6107d989e /sys
parent8db9a4043d9455e04bbe688572b59b0e6c12f3bb (diff)
downloadFreeBSD-src-6eea6dc1d4f5db40f3dc480af266ecd685f624a2.zip
FreeBSD-src-6eea6dc1d4f5db40f3dc480af266ecd685f624a2.tar.gz
Always succeed if the target process is the same as the requesting process.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_prot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 69b086b..ed2965c 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -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);
OpenPOWER on IntegriCloud