summaryrefslogtreecommitdiff
path: root/bin/systrace/register.c
diff options
context:
space:
mode:
authorNikolay Sturm <sturm@cvs.openbsd.org>2006-06-10 07:19:14 +0000
committerNikolay Sturm <sturm@cvs.openbsd.org>2006-06-10 07:19:14 +0000
commita3196c404a66cbaca454c0982e4c210d6a7e1653 (patch)
treeb3889462ad05d2d4671c98a738243ea2a084e528 /bin/systrace/register.c
parent7ef6f7d2cd654e05221c8685686f1597bd6b1918 (diff)
add a translation for sendmsg()
from provos, with feedback from ray and pat
Diffstat (limited to 'bin/systrace/register.c')
-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 02c7868b7d0..9e4c14c11ab 100644
--- a/bin/systrace/register.c
+++ b/bin/systrace/register.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: register.c,v 1.19 2006/04/03 21:10:29 sturm Exp $ */
+/* $OpenBSD: register.c,v 1.20 2006/06/10 07:19:13 sturm Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -58,6 +58,9 @@ systrace_initcb(void)
alias = systrace_new_alias("native", "open", "native", "fswrite");
systrace_alias_add_trans(alias, tl);
+ X(intercept_register_sccb("native", "sendmsg", trans_cb, NULL));
+ intercept_register_translation("native", "sendmsg", 1,
+ &ic_translate_sendmsg);
X(intercept_register_sccb("native", "connect", trans_cb, NULL));
intercept_register_translation("native", "connect", 1,
&ic_translate_connect);