Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/systrace assume that inserting a template implies permit...



details:   https://anonhg.NetBSD.org/src/rev/4c5e077374d0
branches:  trunk
changeset: 537810:4c5e077374d0
user:      provos <provos%NetBSD.org@localhost>
date:      Sun Oct 06 01:28:55 2002 +0000

description:
assume that inserting a template implies permit for the current syscall

diffstat:

 bin/systrace/filter.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 38d8e656287e -r 4c5e077374d0 bin/systrace/filter.c
--- a/bin/systrace/filter.c     Sun Oct 06 01:25:58 2002 +0000
+++ b/bin/systrace/filter.c     Sun Oct 06 01:28:55 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filter.c,v 1.6 2002/09/23 04:35:41 itojun Exp $        */
+/*     $NetBSD: filter.c,v 1.7 2002/10/06 01:28:55 provos Exp $        */
 /*     $OpenBSD: filter.c,v 1.16 2002/08/08 21:18:20 provos Exp $      */
 /*
  * Copyright 2002 Niels Provos <provos%citi.umich.edu@localhost>
@@ -30,7 +30,7 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: filter.c,v 1.6 2002/09/23 04:35:41 itojun Exp $");
+__RCSID("$NetBSD: filter.c,v 1.7 2002/10/06 01:28:55 provos Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -505,7 +505,10 @@
                                continue;
                        }
 
-                       action = filter_evaluate(tls, fls, pflags);
+                       if (fls == NULL)
+                               action = ICPOLICY_PERMIT;
+                       else
+                               action = filter_evaluate(tls, fls, pflags);
                        if (action == ICPOLICY_ASK) {
                                printf("Filter unmatched.\n");
                                continue;



Home | Main Index | Thread Index | Old Index