diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2003-08-04 18:15:12 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2003-08-04 18:15:12 +0000 |
commit | e0db354ad043d751e66fee43bb893034200737c1 (patch) | |
tree | 26c7969593c1c4beb3016eb6a7b7b8517577b8ce /bin/systrace/intercept.h | |
parent | ba654d3f3ba30bdc247f39b1bb74fb11280a2010 (diff) |
several diffs from Niels as applied to NetBSD
monkey.org/NetBSD commit messages:
- get rid of retarded CWD handling. CWD is fixed to the CWD of the systrace
that started everything.
- normalize file name function
- normalize CWD for cases where CWD has a symlink in it. should solve
problems where CWD policies would not match.
- avoid warning due to name collision.
- fixed contrived race condition during attachment; from marius@monkey.org
itojun@ ok
Diffstat (limited to 'bin/systrace/intercept.h')
-rw-r--r-- | bin/systrace/intercept.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/systrace/intercept.h b/bin/systrace/intercept.h index 84fd8b49c0f..805d4e5083d 100644 --- a/bin/systrace/intercept.h +++ b/bin/systrace/intercept.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intercept.h,v 1.17 2003/06/16 06:36:40 itojun Exp $ */ +/* $OpenBSD: intercept.h,v 1.18 2003/08/04 18:15:11 sturm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -100,7 +100,6 @@ struct intercept_pid { char username[MAXLOGNAME]; char home[MAXPATHLEN]; /* current home dir for uid */ - char cwd[MAXPATHLEN]; /* current working directory */ void *data; @@ -185,6 +184,7 @@ struct intercept_pid *intercept_getpid(pid_t); int intercept_existpids(void); char *intercept_get_string(int, pid_t, void *); +char *normalize_filename(int, pid_t, char *, int); char *intercept_filename(int, pid_t, void *, int); void intercept_syscall(int, pid_t, u_int16_t, int, const char *, int, const char *, void *, int); |