diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2002-07-12 12:26:30 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2002-07-12 12:26:30 +0000 |
commit | b7300f4735468d52f521338865215c75f9f319f2 (patch) | |
tree | 1074383738e9cec5612d3740e807edb5a5fda4bb /bin/systrace/register.c | |
parent | 64e656e7d9cd68a82ca9d23edfd658ddef483316 (diff) |
some clean up. install argument replacements only if we are going to
permit the system call. translate some set[e]{g,u}id calls
Diffstat (limited to 'bin/systrace/register.c')
-rw-r--r-- | bin/systrace/register.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/systrace/register.c b/bin/systrace/register.c index 6071bc5cdc6..bc07ffc41f6 100644 --- a/bin/systrace/register.c +++ b/bin/systrace/register.c @@ -1,4 +1,4 @@ -/* $OpenBSD: register.c,v 1.1 2002/07/11 12:57:41 provos Exp $ */ +/* $OpenBSD: register.c,v 1.2 2002/07/12 12:26:29 provos Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -132,6 +132,15 @@ systrace_initcb(void) intercept_register_transstring("native", "symlink", 0); intercept_register_translink("native", "symlink", 1); + X(intercept_register_sccb("native", "setuid", trans_cb, NULL)); + intercept_register_translation("native", "setuid", 0, &uidt); + X(intercept_register_sccb("native", "seteuid", trans_cb, NULL)); + intercept_register_translation("native", "seteuid", 0, &uidt); + X(intercept_register_sccb("native", "setgid", trans_cb, NULL)); + intercept_register_translation("native", "setgid", 0, &gidt); + X(intercept_register_sccb("native", "setegid", trans_cb, NULL)); + intercept_register_translation("native", "setegid", 0, &gidt); + X(intercept_register_sccb("linux", "open", trans_cb, NULL)); tl = intercept_register_translink("linux", "open", 0); intercept_register_translation("linux", "open", 1, &linux_oflags); |