From 2bb5abec4cb5d8c1b88df7b2207326387c1da228 Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Thu, 12 Dec 2002 00:39:15 +0000 Subject: Allow the log directive to work for non-translated syscalls as well. provos ok --- bin/systrace/systrace.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin/systrace') 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 * 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; -- cgit v1.2.3