summaryrefslogtreecommitdiff
path: root/sys/dev/systrace.h
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-09-18 23:24:15 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-09-18 23:24:15 +0000
commit01828fa1f01fd1c82399b056e2c7250d308c56df (patch)
tree3748a26e81c4f2f6851f7a751eb44d6502ab2b97 /sys/dev/systrace.h
parent7fbcb0d21f1e3057dc3a3c665ca09626fbed9de4 (diff)
Add support for *at(2) system calls to systrace(1).
ok deraadt@, sthen@, jasper@
Diffstat (limited to 'sys/dev/systrace.h')
-rw-r--r--sys/dev/systrace.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/systrace.h b/sys/dev/systrace.h
index 9af22c05cf8..18a9b9e0429 100644
--- a/sys/dev/systrace.h
+++ b/sys/dev/systrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.h,v 1.22 2011/06/22 01:32:16 djm Exp $ */
+/* $OpenBSD: systrace.h,v 1.23 2011/09/18 23:24:14 matthew Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -167,6 +167,11 @@ struct systrace_inject {
pid_t stri_pid;
};
+struct systrace_getcwd {
+ pid_t strgd_pid;
+ int strgd_atfd;
+};
+
#define STRIOCCLONE _IOR('s', 100, int)
#define SYSTR_CLONE STRIOCCLONE
#define STRIOCATTACH _IOW('s', 101, pid_t)
@@ -174,7 +179,7 @@ struct systrace_inject {
#define STRIOCANSWER _IOW('s', 103, struct systrace_answer)
#define STRIOCIO _IOWR('s', 104, struct systrace_io)
#define STRIOCPOLICY _IOWR('s', 105, struct systrace_policy)
-#define STRIOCGETCWD _IOW('s', 106, pid_t)
+#define STRIOCGETCWD _IOW('s', 106, struct systrace_getcwd)
#define STRIOCRESCWD _IO('s', 107)
#define STRIOCREPORT _IOW('s', 108, pid_t)
#define STRIOCREPLACE _IOW('s', 109, struct systrace_replace)