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
csh Since we have rlim_t, use it. 2002-05-28 22:12:25 +00:00
date
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
domainname
echo
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
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
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
mv
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
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
sh deal with char c; c != -129 warning. Hi jason! 2002-05-31 16:18:48 +00:00
sleep
stty
sync
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