path: root/pseudo.1
diff options
authorPeter Seebach <seebs@eee12.(none)>2010-03-24 19:31:58 -0500
committerPeter Seebach <seebs@eee12.(none)>2010-03-25 16:43:13 -0500
commit2c389272304f2710b317f185c6fb057458bc9027 (patch)
treeee35ad5102fc6a17f284c693c19a3a028a3114ea /pseudo.1
parent4b555b46b36ccd50a1130238e02a2e2d41b50366 (diff)
initial chroot() support
Add chroot() and a large number of things needed to make it work. The list of intercepted calls is large but not exhaustive.
Diffstat (limited to 'pseudo.1')
1 files changed, 26 insertions, 0 deletions
diff --git a/pseudo.1 b/pseudo.1
index 43721ab..e2317f3 100644
--- a/pseudo.1
+++ b/pseudo.1
@@ -20,6 +20,7 @@
.B pseudo
.RB [ \-dflv ]
.RB [ \-P\ prefix ]
+.RB [ \-rR\ root ]
.RB [ \-t\ timeout ]
.RB [ command ]
@@ -122,17 +123,35 @@ detaches from the calling environment and runs as a daemon. The command
returns successfully if this appears to have succeeded, otherwise it
produces an error message and returns a failure status.
+.TP 8
.BI \-f\ (foreground)
Run in the foreground;
.I pseudo
runs as a server, and does not try to start other commands. This mode
is useful for debugging.
+.TP 8
.BI \-l\ (log)
Enable logging. The
.I pseudo
daemon will log every filesystem transaction in the log database.
+.TP 8
+.BI \-r\ root
+.TP 8
+.BI \-R\ root
+Set the
+environment variable, running as though the program had called
+.I chroot(2)
+on the specified path. With
+.BR \-r ,
+this implies changing the working directory to the specified directory;
+.BR \-R ,
+it does not.
+.TP 8
.B \-t timeout
Set the timeout of the
.I pseudo
@@ -143,6 +162,7 @@ daemon shuts down automatically. The server never shuts down while it
has attached clients. Note that this does not prevent continued use;
new clients can restart the daemon if they need it.
+.TP 8
.BI \-v\ (verbose)
Increase the verbosity of the
.I pseudo
@@ -244,6 +264,12 @@ The following environment variables are used directly by
.IR pseudo :
.TP 8
+This variable holds the current emulated
+.I chroot(2)
+path. Paths that are relative to this are treated as though they were
+instead relative to the filesystem root.
+.TP 8
This variable holds the "debug level" for
.I pseudo