summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authormarius eriksen <marius@cvs.openbsd.org>2004-11-07 20:42:12 +0000
committermarius eriksen <marius@cvs.openbsd.org>2004-11-07 20:42:12 +0000
commit03abe633b1330b179d0d7c7bbbe094a456ee5ec3 (patch)
treedb51a4b292ef46bc55a988fce5439d6a0a8e6969 /share
parentc95753471734848d40f6959da38867a89ad78cf7 (diff)
document systrace inject.
ok millert@
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/systrace.415
1 files changed, 14 insertions, 1 deletions
diff --git a/share/man/man4/systrace.4 b/share/man/man4/systrace.4
index db5994baf1b..8cf0413613c 100644
--- a/share/man/man4/systrace.4
+++ b/share/man/man4/systrace.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: systrace.4,v 1.12 2004/10/04 21:14:38 jmc Exp $
+.\" $OpenBSD: systrace.4,v 1.13 2004/11/07 20:42:11 marius Exp $
.\"
.\" Copyright (c) 2002, 2003 CubeSoft Communications, Inc.
.\" All rights reserved.
@@ -275,6 +275,19 @@ Set the working directory of the current process to that of the
named process.
.It Dv STRIOCRESCWD
Restore the working directory of the current process.
+.It Dv STRIOCINJECT
+Inject a buffer into the stackgap of the traced process. This
+accommodates for the manipulation of non-scalar arguments. The actual
+replacement is not done until system call time, and its presence in
+the stackgap is only guaranteed for the duration of that system call.
+.Bd -literal
+struct systrace_inject {
+ /* On return, this contains the stackgap address. */
+ caddr_t stri_addr;
+ size_t stri_len;
+ pid_t stri_pid;
+};
+.Ed
.El
.Sh FILES
.Bl -tag -width "/dev/systrace" -compact