NetBSD/bin
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
..
cat The el option is an extention. 2002-07-03 01:27:23 +00:00
chio no need for \n on errx 2002-06-11 05:33:51 +00:00
chmod Fix a comment: POSIX doesn't specify -h. 2002-05-31 18:54:01 +00:00
cp Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
csh Since we have rlim_t, use it. 2002-05-28 22:12:25 +00:00
date Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
dd Add LL to 1099511627776 since it won't fit in a long on ILP32 systems. 2002-06-09 19:38:00 +00:00
df Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
domainname
echo Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
ed __STDC__ is always defined on NetBSD. 2002-05-25 23:29:16 +00:00
expr rewritten in NetBSD 1.6 -> rewritten for NetBSD 1.6 2002-02-19 21:14:45 +00:00
hostname ANSIfy and KNF fixes, use {g,s}etprogname. Patch by Petri Koistinen. 2001-09-16 13:48:35 +00:00
kill Xref pkill/pgrep. 2002-03-04 13:02:32 +00:00
ksh __STDC__ is always defined on NetBSD. 2002-05-25 23:29:16 +00:00
ln ANSIfy, KNF, by Petri Koistinen. 2001-09-16 22:14:40 +00:00
ls Note that -T is to be used with -l; synced with FreeBSD via Michal 2002-06-24 20:14:35 +00:00
mkdir Cosmetic changes. 2002-02-19 06:30:12 +00:00
mt Whitespace nits. 2001-12-20 19:31:48 +00:00
mv Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
pax Change how "cd .." is handled in next_file() with -M, to ensure that curdir[] 2002-06-28 11:29:45 +00:00
ps g/c procfs fallback code, it's redundant now that we use sysctl to get 2002-06-19 08:11:55 +00:00
pwd Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
rcmd Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
rcp __STDC__ is always defined on NetBSD. 2002-05-25 23:29:16 +00:00
rm - Use four space to indent continuation line. 2002-05-02 13:25:09 +00:00
rmdir Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
sh deal with char c; c != -129 warning. Hi jason! 2002-05-31 16:18:48 +00:00
sleep Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
stty Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
sync Sort SEE ALSO. 2001-12-20 20:03:29 +00:00
systrace Mostly just a rewrite of intercept_run() so the arrangement of "child" 2002-07-03 22:54:38 +00:00
test __STDC__ is always defined on NetBSD. 2002-05-25 23:12:16 +00:00
Makefile Add userland portion of systrace. 2002-06-17 16:29:07 +00:00
Makefile.inc change from WARNS?=1 to WARNS?=2 for bin/ 2001-11-03 13:40:30 +00:00