summaryrefslogtreecommitdiffstats
path: root/bin/systrace/openbsd-syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/systrace/openbsd-syscalls.c')
-rw-r--r--bin/systrace/openbsd-syscalls.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/bin/systrace/openbsd-syscalls.c b/bin/systrace/openbsd-syscalls.c
index 35984efe19d..b2eb36eae64 100644
--- a/bin/systrace/openbsd-syscalls.c
+++ b/bin/systrace/openbsd-syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: openbsd-syscalls.c,v 1.13 2002/08/28 03:54:35 itojun Exp $ */
+/* $OpenBSD: openbsd-syscalls.c,v 1.14 2002/10/09 03:52:10 itojun Exp $ */
/*
* Copyright 2002 Niels Provos <provos@citi.umich.edu>
* All rights reserved.
@@ -595,6 +595,17 @@ obsd_read(int fd)
err(1, "%s:%d: answer", __func__, __LINE__);
break;
+ case SYSTR_MSG_UGID: {
+ struct str_msg_ugid *msg_ugid;
+
+ msg_ugid = &msg.msg_data.msg_ugid;
+
+ intercept_ugid(icpid, msg_ugid->uid, msg_ugid->uid);
+
+ if (obsd_answer(fd, pid, seqnr, 0, 0, 0) == -1)
+ err(1, "%s:%d: answer", __func__, __LINE__);
+ break;
+ }
case SYSTR_MSG_CHILD:
intercept_child_info(msg.msg_pid,
msg.msg_data.msg_child.new_pid);