diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2002-12-12 00:39:15 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2002-12-12 00:39:15 +0000 |
commit | 2bb5abec4cb5d8c1b88df7b2207326387c1da228 (patch) | |
tree | 1d826e78d1f0339e6acb543fac6e77df89039ade /bin | |
parent | 0b0ab554af22e2e11b3f089bac0a2ed39c9b048c (diff) |
Allow the log directive to work for non-translated syscalls as well.
provos ok
Diffstat (limited to 'bin')
-rw-r--r-- | bin/systrace/systrace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index 03224aa7b0f..5eaca041569 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: systrace.c,v 1.41 2002/12/11 16:55:28 avsm Exp $ */ +/* $OpenBSD: systrace.c,v 1.42 2002/12/12 00:39:14 avsm Exp $ */ /* * Copyright 2002 Niels Provos <provos@citi.umich.edu> * All rights reserved. @@ -284,6 +284,10 @@ gen_cb(int fd, pid_t pid, int policynr, const char *name, int code, errx(1, "%s:%d: no filter queue", __func__, __LINE__); action = filter_evaluate(NULL, pflq, ipid); + + if (ipid->uflags & SYSCALL_LOG) + dolog = 1; + if (action != ICPOLICY_ASK) goto out; |