diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-07-31 17:25:12 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-07-31 17:25:12 +0000 |
commit | c1e081808c30513d7665c36860a5d832f480b19e (patch) | |
tree | c96942a40689bb14e283eb15ba6d3dd61cfe9d67 | |
parent | fdddc3e2c4dd84957188506ec1e72bdd10ad4a3f (diff) | |
download | FreeBSD-src-c1e081808c30513d7665c36860a5d832f480b19e.zip FreeBSD-src-c1e081808c30513d7665c36860a5d832f480b19e.tar.gz |
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
-rw-r--r-- | sys/kern/kern_prot.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index a10d3da..a470656 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); |