summaryrefslogtreecommitdiff
path: root/bin/systrace/systrace.h
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-08-04 04:15:51 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-08-04 04:15:51 +0000
commit74dbe94aa379dcac6f1418bf359acce1f10db1dd (patch)
tree6a942f52335b2471b91f40525b728465d24b5ece /bin/systrace/systrace.h
parentd188110b1d5c38b87d32da7588a3d4cad0fd4f15 (diff)
keep track of ppid and allow matching rules to be logged via syslog.
Diffstat (limited to 'bin/systrace/systrace.h')
-rw-r--r--bin/systrace/systrace.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/systrace/systrace.h b/bin/systrace/systrace.h
index e3bc74d16c1..ae1db702c31 100644
--- a/bin/systrace/systrace.h
+++ b/bin/systrace/systrace.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.h,v 1.12 2002/07/30 06:07:06 itojun Exp $ */
+/* $OpenBSD: systrace.h,v 1.13 2002/08/04 04:15:50 provos Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -98,6 +98,7 @@ struct policy {
#define PROCESS_INHERIT_POLICY 0x01 /* Process inherits policy */
#define PROCESS_DETACH 0x02 /* Process gets detached */
+#define SYSCALL_LOG 0x04 /* Log this system call */
int systrace_initpolicy(char *);
void systrace_initcb(void);
@@ -167,7 +168,7 @@ char *uid_to_name(uid_t);
char *strrpl(char *, size_t, char *, char *);
-void make_output(char *, size_t, const char *, pid_t, int,
+void make_output(char *, size_t, const char *, pid_t, pid_t, int,
const char *, int, const char *, const char *, int, struct intercept_tlq *,
struct intercept_replace *);
short trans_cb(int, pid_t, int, const char *, int, const char *, void *,