From e7f65fdcf9c02655338c0d33dec6f1ffecff2352 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 31 Jul 2001 17:25:12 +0000 Subject: [PATCH] o Modify p_candebug() such that there is no longer automatic acceptance of debugging the current process when that is in conflict with other restrictions (such as jail, unprivileged_procdebug_permitted, etc). o This corrects anomolies in the behavior of kern.security.unprivileged_procdebug_permitted when using truss and ktrace. The theory goes that this is now safe to use. Obtained from: TrustedBSD Project --- sys/kern/kern_prot.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index a10d3dab5f1..a470656c67e 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1204,9 +1204,6 @@ 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);