diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2001-11-02 16:41:06 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2001-11-02 16:41:06 +0000 |
| commit | 5fab7614f4f201cfa378f11f5523ebce0015ccab (patch) | |
| tree | c1dc26b59d543a32ff9337e0c73fd044b285a83b /sys | |
| parent | 06a9ff8e819ef0bf5c009847280e49c16b848f13 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/kern_prot.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 6a1789813c05..f98135a22e2a 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -1569,7 +1569,12 @@ p_candebug(struct proc *p1, struct proc *p2) return (error); } - /* can't trace a process that's currently exec'ing */ + /* + * Can't trace a process that's currently exec'ing. + * XXX: Note, this is not a security policy decision, it's a + * basic correctness/functionality decision. Therefore, this check + * should be moved to the caller's of p_candebug(). + */ if ((p2->p_flag & P_INEXEC) != 0) return (EAGAIN); |
