Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern PR/17407: Jim Wise: Systrace does not work without ...



details:   https://anonhg.NetBSD.org/src/rev/91127738bc33
branches:  trunk
changeset: 533314:91127738bc33
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 27 13:22:54 2002 +0000

description:
PR/17407: Jim Wise: Systrace does not work without procfs.
FIX: use process_domem as thorpej suggested.

diffstat:

 sys/kern/kern_systrace.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 49579f816378 -r 91127738bc33 sys/kern/kern_systrace.c
--- a/sys/kern/kern_systrace.c  Thu Jun 27 12:12:49 2002 +0000
+++ b/sys/kern/kern_systrace.c  Thu Jun 27 13:22:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_systrace.c,v 1.2 2002/06/18 01:24:15 thorpej Exp $        */
+/*     $NetBSD: kern_systrace.c,v 1.3 2002/06/27 13:22:54 christos Exp $       */
 
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.2 2002/06/18 01:24:15 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_systrace.c,v 1.3 2002/06/27 13:22:54 christos Exp $");
 
 #include "opt_systrace.h"
 
@@ -53,10 +53,9 @@
 #include <sys/pool.h>
 #include <sys/mount.h>
 #include <sys/poll.h>
+#include <sys/ptrace.h>
 #include <sys/systrace.h>
 
-#include <miscfs/procfs/procfs.h>
-
 #ifdef __NetBSD__
 #define        SYSTRACE_LOCK(fst, p)   lockmgr(&fst->lock, LK_EXCLUSIVE, NULL)
 #define        SYSTRACE_UNLOCK(fst, p) lockmgr(&fst->lock, LK_RELEASE, NULL)
@@ -968,7 +967,7 @@
        uio.uio_segflg = UIO_USERSPACE;
        uio.uio_procp = p;
 
-       error = procfs_domem(p, t, NULL, &uio);
+       error = process_domem(p, t, &uio);
        io->strio_len -= uio.uio_resid;
  out:
 



Home | Main Index | Thread Index | Old Index