Manual Reference Pages - PRIV_RESPAWN_AS (3)
priv_respawn_as - spawn a new instance of the process as the specified user, possibly in a chroot jail.
int priv_respawn_as(void (*fnptr)(char * const *), char * const arg, const char *user, const char *chroot);
priv_respawn_as causes the application to run again, falling out of
priv_init with the original state intact. The current process will continue unaffected.
The function pointed to by
fnptr will be called with NULL-terminated the string array argument provided in
arg before the application returns from priv_init, allowing you to change global
state as required. The application will be running as
user in the chroot jail
chroot. You can pass
for the user and the chroot argmuments, in which case no chroot jail will be used, and the user will
be the default unprivileged user.
both slave processes will be able to use a Privman server. See
for more details and examples.
priv_respawn_as requires that
allow_rerun be set to true in the applications configuration file. If the application
needs to use either the
chroot options, then
chroot will also have to be set properly in the applications configuration file.
for more detail.
The applications configuration file. See
for more details.
This is not the simpliest primitive to understand. It might
be nice if program execution could continue from the point of invocation
rather than having to restart at priv_init().
It might be useful to be able to pass file descriptors.
Network Associates. Send email to <firstname.lastname@example.org>
|Unix ||PRIV_RESPAWN_AS (3) ||SEPTEMBER 2002 |
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.