summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-06-07 19:29:01 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-06-07 19:29:01 +0000
commitb1e5f92feb4932407da2768e73d0aa2872f14521 (patch)
tree15caf2411239ee8df159d66004637fee44cf54ff
parent6ec4af724ce30b69e7035738217a7ba91aa401f4 (diff)
explain about permit[inherit] for execve
-rw-r--r--bin/systrace/systrace.126
1 files changed, 21 insertions, 5 deletions
diff --git a/bin/systrace/systrace.1 b/bin/systrace/systrace.1
index a7ff669b38b..ba17a4cb66e 100644
--- a/bin/systrace/systrace.1
+++ b/bin/systrace/systrace.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: systrace.1,v 1.12 2002/06/05 21:09:02 provos Exp $
+.\" $OpenBSD: systrace.1,v 1.13 2002/06/07 19:29:00 provos Exp $
.\"
.\" Copyright 2002 Niels Provos <provos@citi.umich.edu>
.\" All rights reserved.
@@ -82,11 +82,11 @@ The policy is specified via the following grammar:
.Bd -literal -offset AAA
filter = expression "then" action errorcode
expression = symbol | "not" expression | "(" expression ")" |
- expression "and" expression | expression "or" expression
+ expression "and" expression | expression "or" expression
symbol = string typeoff "match" cmdstring |
- string typeoff "eq" cmdstring | string typeoff "neq" cmdstring |
- string typeoff "sub" cmdstring | string typeoff "nsub" cmdstring |
- string typeoff "inpath" cmdstring | "true"
+ string typeoff "eq" cmdstring | string typeoff "neq" cmdstring |
+ string typeoff "sub" cmdstring | string typeoff "nsub" cmdstring |
+ string typeoff "inpath" cmdstring | "true"
typeoff = /* empty */ | "[" number "]"
action = "permit" | "deny"
errorcode = /* empty */ | "[" string "]"
@@ -95,6 +95,22 @@ errorcode = /* empty */ | "[" string "]"
The
.Va cmd-string
is an arbitrary string enclosed with quotation marks.
+The
+.Va errorcode
+is used to return an
+.Xr errno 2
+value to the system call when using a
+.Va deny
+action. The value
+.Do
+inherit
+.Dc
+has a special meaning when used with a
+.Va permit
+rule for the
+.Va execve
+system call.
+In that case, the current policy is inherited for the new binary.
.Pp
Policy entries may contain an appended predicate.
Predicates have the following format: