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
This commit is contained in:
rwatson 2001-07-31 17:25:12 +00:00
parent fdddc3e2c4
commit c1e081808c

View File

@ -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);