1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

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:
Robert Watson 2001-07-31 17:25:12 +00:00
parent 89b1abc0bf
commit e7f65fdcf9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80746

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