summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2002-06-13 00:15:00 +0000
committerprovos <provos@openbsd.org>2002-06-13 00:15:00 +0000
commit715b46304db017ad50254902702bf45fa1ebb125 (patch)
tree4914f471ccc6c53460e85a686c9176f81919b216
parentthis stuff really belongs to stderr, not stdout (diff)
downloadwireguard-openbsd-715b46304db017ad50254902702bf45fa1ebb125.tar.xz
wireguard-openbsd-715b46304db017ad50254902702bf45fa1ebb125.zip
explain filter operands
-rw-r--r--bin/systrace/systrace.127
1 files changed, 25 insertions, 2 deletions
diff --git a/bin/systrace/systrace.1 b/bin/systrace/systrace.1
index f25bb8ac83d..12561f625de 100644
--- a/bin/systrace/systrace.1
+++ b/bin/systrace/systrace.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: systrace.1,v 1.15 2002/06/10 19:18:48 provos Exp $
+.\" $OpenBSD: systrace.1,v 1.16 2002/06/13 00:15:00 provos Exp $
.\"
.\" Copyright 2002 Niels Provos <provos@citi.umich.edu>
.\" All rights reserved.
@@ -101,7 +101,7 @@ errorcode = /* empty */ | "[" string "]"
.Ed
.Pp
The
-.Va cmd-string
+.Va cmdstring
is an arbitrary string enclosed with quotation marks.
The
.Va errorcode
@@ -120,6 +120,29 @@ rule for the
system call.
In that case, the current policy is inherited for the new binary.
.Pp
+The filter operations have the following meaning:
+.Bl -hang -width Dinpath -offset AAA
+.It match
+Evaluates to true if file name globbing according to
+.Xr fnmatch 3
+succeeds.
+.It eq
+Evaluates to true if the system call argument matches
+.Va cmdstring
+exactly.
+.It neq
+This is the logical negation of
+.Va eq .
+.It sub
+Performs a substring match on the system call argument.
+.It nsub
+This is the logical negation of
+.Va sub .
+.It inpath
+Evaluates to true if the system call argument is a subpath of
+.Va cmdstring .
+.El
+.Pp
Policy entries may contain an appended predicate.
Predicates have the following format:
.Bd -literal -offset AAA