diff options
author | phk <phk@FreeBSD.org> | 1999-11-21 19:03:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-11-21 19:03:20 +0000 |
commit | fd22d5412a1070b4d246fd214adad09041a53661 (patch) | |
tree | 867fad2f774e25520c2cda23aadefcd7ffc0c9a7 /sys/kern/sys_process.c | |
parent | 8e826fbb578d38649959b6b64ece53cd8b855cbc (diff) | |
download | FreeBSD-src-fd22d5412a1070b4d246fd214adad09041a53661.zip FreeBSD-src-fd22d5412a1070b4d246fd214adad09041a53661.tar.gz |
Introduce the new function
p_trespass(struct proc *p1, struct proc *p2)
which returns zero or an errno depending on the legality of p1 trespassing
on p2.
Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one
extra signal related check.
Replace procfs.h:CHECKIO() macros with calls to p_trespass().
Only show command lines to process which can trespass on the target
process.
Diffstat (limited to 'sys/kern/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 75b72fb..4740476 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -420,8 +420,7 @@ ptrace(curp, uap) return EFAULT; } if (ptrace_read_u_check(p,(vm_offset_t) uap->addr, - sizeof(int)) && - !procfs_kmemaccess(curp)) { + sizeof(int))) { return EFAULT; } error = 0; |