NetBSD/bin/systrace
atatat 11bb544ec0 Mostly just a rewrite of intercept_run() so the arrangement of "child"
process and "parent" process is more conducive to policy generation.
Previously, tracing of a given program worked something like this:

	fork()
	if (child)
		execprogram()
	else
		dotracing()

That means that if you "systrace -a named", named would fork and
background itself, but you would never get your prompt back because
systrace didn't exit.  Now it works like this:

	fork()
	if (interactive)
		if (child)
			execprogram()
		else
			dotracing()
	else
		if (parent)
			execprogram()
		else
			fork()
			if (parent)
				exit(0)
			setsid()
			dotracing()

This makes it *much* easier to do automated policy generation for
tasks run from rc.d.  Or, for that matter, makes it much easier to use
systrace with tasks run from rc.d.
2002-07-03 22:54:38 +00:00
..
Makefile need ${.CURDIR} for linux_syscalls.c include 2002-06-18 09:52:04 +00:00
filter.c Some const poisoning. 2002-06-18 02:49:08 +00:00
filter.h Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
intercept-translate.c Do the previous slightly differently. 2002-06-18 21:21:17 +00:00
intercept.c Mostly just a rewrite of intercept_run() so the arrangement of "child" 2002-07-03 22:54:38 +00:00
intercept.h Some const poisoning. 2002-06-18 02:49:08 +00:00
lex.l Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
netbsd-syscalls.c Fix an include snafu pointed out by Matt Thomas. 2002-06-18 02:55:19 +00:00
openbsd-syscalls.c Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
parse.y Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
policy.c Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
systrace-errno.h Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
systrace-error.c Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
systrace-translate.c Fix warnings on Alpha: Cast to intptr_t to extract ints stored in void *'s, 2002-06-18 21:22:45 +00:00
systrace.1 Sort sections. 2002-06-26 15:29:43 +00:00
systrace.c Mostly just a rewrite of intercept_run() so the arrangement of "child" 2002-07-03 22:54:38 +00:00
systrace.h Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
tree.h Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
util.c Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
util.h Add userland portion of systrace. 2002-06-17 16:29:07 +00:00