diff options
author | marius eriksen <marius@cvs.openbsd.org> | 2004-06-23 05:16:36 +0000 |
---|---|---|
committer | marius eriksen <marius@cvs.openbsd.org> | 2004-06-23 05:16:36 +0000 |
commit | 528bd53c0cc743655a6747db3a4d672c6098ca67 (patch) | |
tree | b1d6879de63ee62cdb2c8342dff0c4f0fba6cd19 /bin/systrace/intercept.h | |
parent | 2ff9215ae085c0961f6425b9bbae0fc6b5e5d9a0 (diff) |
a few fixes to systrace
- add an exec message so that whenever a set-uid/gid process
exec's a new image which we may control, the exec does not
go by unnoticed.
- take special care to check for P_SUGIDEXEC as well as
P_SUGID, corresponding to the same changes that were made in
the ptrace code a while ago
ok niels@, sturm@; thanks to naddy for testing
Diffstat (limited to 'bin/systrace/intercept.h')
-rw-r--r-- | bin/systrace/intercept.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/systrace/intercept.h b/bin/systrace/intercept.h index a1ccf6919b1..9bb9da7ecdd 100644 --- a/bin/systrace/intercept.h +++ b/bin/systrace/intercept.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.h,v 1.19 2003/10/08 16:32:44 sturm Exp $ */ +/* $OpenBSD: intercept.h,v 1.20 2004/06/23 05:16:35 marius Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -196,6 +196,8 @@ void intercept_syscall_result(int, pid_t, u_int16_t, int, const char *, int, const char *, void *, int, int, void *); void intercept_ugid(struct intercept_pid *, uid_t, gid_t); void intercept_setpid(struct intercept_pid *, uid_t, gid_t); +void intercept_newimage(int, pid_t, int, + const char *, char *, struct intercept_pid *); int intercept_isvalidsystemcall(char *, char *); |