summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-12-11 21:30:32 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-12-11 21:30:32 +0000
commita342f962baf22ac9db5f3bd2a04ed48f1e2a2b74 (patch)
treed3643230668304deebb48d98ba0541e2eb192241 /sys/dev
parentbdbdd1c8cc21dca99b15a748a74b14759192348c (diff)
Replace procfs_domem() with a similar interface, process_domem(), which lives
out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument; also procfs_checkioperm() becomes process_checkioperm(). From art@ some time ago; ok kettenis@ pedro@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/systrace.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/systrace.c b/sys/dev/systrace.c
index 9fa8f3292cd..8670f716d0f 100644
--- a/sys/dev/systrace.c
+++ b/sys/dev/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.39 2005/11/19 02:18:00 pedro Exp $ */
+/* $OpenBSD: systrace.c,v 1.40 2005/12/11 21:30:30 miod Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -47,11 +47,10 @@
#include <sys/mount.h>
#include <sys/namei.h>
#include <sys/poll.h>
+#include <sys/ptrace.h>
#include <compat/common/compat_util.h>
-#include <miscfs/procfs/procfs.h>
-
#include <dev/systrace.h>
void systraceattach(int);
@@ -1211,7 +1210,7 @@ systrace_io(struct str_process *strp, struct systrace_io *io)
uio.uio_segflg = UIO_USERSPACE;
uio.uio_procp = p;
- error = procfs_domem(p, t, NULL, &uio);
+ error = process_domem(p, t, &uio, PT_WRITE_I);
io->strio_len -= uio.uio_resid;
out: