Commit Graph

11 Commits

Author SHA1 Message Date
peter 6dcaf25d17 Free allocated space upon failure.
Fixes Coverity CID 1661.
2006-03-18 00:14:50 +00:00
elad 3752840791 Add a new keyword, ``topdir'', that grants access only if the file is
in a hierarchy below the specified path.
2005-08-24 19:09:03 +00:00
provos bd80d3ced7 permit numberic values for uid and gid; allow "<" and ">" for less and
greater; requested by dugsong
2003-05-20 22:45:13 +00:00
provos a2468a8d04 new "ask" action. creates a new rule that prompts the user for an
action but allows only yes or no answer.  inspired from talking
with dugsong@monkey
2003-03-25 23:17:29 +00:00
provos 048da773ed error messages need to go to stderr 2002-11-23 17:42:45 +00:00
provos 695ad5ee17 add support for regular expressions to be more flexible with policy string
matching.
2002-11-02 20:04:20 +00:00
provos 61e8c76047 support for privilege elevation.
with privilege elevation no suid or sgid binaries are necessary any
longer.  Applications can be executed completely unprivileged. Systrace
raises the privileges for a single system call depending on the
configured policy.

Idea from discussions with Perry Metzger, Dug Song and Marcus Watts.
Approved by christos and thorpej.
2002-10-11 21:54:55 +00:00
provos 89afc325c0 predicates are part of the grammar now; in non-root case, predicates are
evaluated only once; in root case, predicates and variable expansion are
dynamic.
2002-10-08 14:49:23 +00:00
itojun b6aefbe19f sync with latest systrace in openbsd tree. improved systrace with chroot. 2002-08-28 03:52:44 +00:00
itojun 4f0c9c76b6 sync up with latest openbsd systrace.
- avoid race conditions by having seqno in ioctl
- better uid/gid tracking
- "replace" policy to replace args
- less diffs, as many of local changes were fed back to openbsd already

due to the 1st item, it was impossible for us to provide backward-compatibility
(new kernel + old bin/systrace won't work).  upgrade both.
2002-07-30 16:29:28 +00:00
christos 5039a9e5ee Add userland portion of systrace. 2002-06-17 16:29:07 +00:00