From 9fdbafa2fe06cfff465241ce76c5395269982396 Mon Sep 17 00:00:00 2001 From: tegge Date: Tue, 19 May 1998 00:00:14 +0000 Subject: Disallow reading the current kernel stack. Only the user structure and the current registers should be accessible. Reviewed by: David Greenman --- sys/powerpc/include/ptrace.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sys/powerpc') diff --git a/sys/powerpc/include/ptrace.h b/sys/powerpc/include/ptrace.h index a8f7e71..ec3d5aa 100644 --- a/sys/powerpc/include/ptrace.h +++ b/sys/powerpc/include/ptrace.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ptrace.h 8.1 (Berkeley) 6/11/93 - * $Id$ + * $Id: ptrace.h,v 1.5 1997/02/22 09:35:03 peter Exp $ */ #ifndef _MACHINE_PTRACE_H_ @@ -45,5 +45,9 @@ #define PT_GETFPREGS (PT_FIRSTMACH + 3) #define PT_SETFPREGS (PT_FIRSTMACH + 4) +#ifdef KERNEL +int ptrace_read_u_check __P((struct proc *p, vm_offset_t off, size_t len)); +#endif /* !KERNEL */ + #endif -- cgit v1.1