summaryrefslogtreecommitdiff
path: root/bin/systrace
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2006-04-03 21:10:30 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2006-04-03 21:10:30 +0000
commite6e3aaf97857eae8223ef0cb30d64f58808b4f34 (patch)
tree61c8d126f395f435d1d69eb0d56fdd5aa2533926 /bin/systrace
parent2cf1d705c75646daf6d730b964fbc1ea34571bac (diff)
add translation for mknod
ok provos
Diffstat (limited to 'bin/systrace')
-rw-r--r--bin/systrace/register.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/systrace/register.c b/bin/systrace/register.c
index 8a4d4d58a95..02c7868b7d0 100644
--- a/bin/systrace/register.c
+++ b/bin/systrace/register.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: register.c,v 1.18 2006/03/25 10:39:10 sturm Exp $ */
+/* $OpenBSD: register.c,v 1.19 2006/04/03 21:10:29 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -96,6 +96,9 @@ systrace_initcb(void)
intercept_register_translation("native", "mkfifo", 1, &ic_modeflags);
alias = systrace_new_alias("native", "mkfifo", "native", "fswrite");
systrace_alias_add_trans(alias, tl);
+ X(intercept_register_sccb("native", "mknod", trans_cb, NULL));
+ intercept_register_transfn("native", "mknod", 0);
+ intercept_register_translation("native", "mknod", 1, &ic_modeflags);
X(intercept_register_sccb("native", "chown", trans_cb, NULL));
intercept_register_transfn("native", "chown", 0);