From 4ff1bfdbd5e489c43e269b5ffed2cf5c78413506 Mon Sep 17 00:00:00 2001 From: provos Date: Sun, 15 Dec 2002 19:05:31 +0000 Subject: [PATCH] allow logging for untranslated syscalls; from anil@recoil.org --- bin/systrace/systrace.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/systrace/systrace.c b/bin/systrace/systrace.c index 49c1582923a5..aec08ebfed8e 100644 --- a/bin/systrace/systrace.c +++ b/bin/systrace/systrace.c @@ -1,4 +1,4 @@ -/* $NetBSD: systrace.c,v 1.14 2002/12/06 01:43:18 thorpej Exp $ */ +/* $NetBSD: systrace.c,v 1.15 2002/12/15 19:05:31 provos Exp $ */ /* $OpenBSD: systrace.c,v 1.32 2002/08/05 23:27:53 provos Exp $ */ /* * Copyright 2002 Niels Provos @@ -285,6 +285,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;