summaryrefslogtreecommitdiffstats
path: root/bin/systrace/systrace.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-08-23 00:08:36 +0000
committerguenther <guenther@openbsd.org>2012-08-23 00:08:36 +0000
commit905d524072835373d7ae91f3c82d87e3b6a15663 (patch)
treefb301b2c170c021fc2b8f7b9adedb9db65cbe3a7 /bin/systrace/systrace.c
parentWe want to check that the dynamic linker is available at run-time, so (diff)
downloadwireguard-openbsd-905d524072835373d7ae91f3c82d87e3b6a15663.tar.xz
wireguard-openbsd-905d524072835373d7ae91f3c82d87e3b6a15663.zip
Reopen the systrace file in the process that will actually attach to the
target process(es), so that systrace files can be made unsharable. ok djm@
Diffstat (limited to 'bin/systrace/systrace.c')
-rw-r--r--bin/systrace/systrace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c
index 0c998e125ee..2395e04b07a 100644
--- a/bin/systrace/systrace.c
+++ b/bin/systrace/systrace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: systrace.c,v 1.56 2007/11/26 09:28:33 martynas Exp $ */
+/* $OpenBSD: systrace.c,v 1.57 2012/08/23 00:08:36 guenther Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -762,10 +762,10 @@ main(int argc, char **argv)
args[i] = NULL;
if (setcredentials)
- trpid = intercept_run(background, trfd,
+ trpid = intercept_run(background, &trfd,
cr_uid, cr_gid, args[0], args);
else
- trpid = intercept_run(background, trfd, 0, 0,
+ trpid = intercept_run(background, &trfd, 0, 0,
args[0], args);
if (trpid == -1)
err(1, "fork");