15 logmsg(
fatal,111,ERROR,
"$ROOT not set");
17 logmsg(
fatal,111,FATAL,B(
"unable to chdir to: ",
x));
18 if (chroot(
".") == -1)
19 logmsg(
fatal,111,FATAL,B(
"unable to chroot to: ",
x));
23 logmsg(
fatal,111,FATAL,
"$GID not set");
25 if (prot_gid((
int)
id) == -1)
26 logmsg(
fatal,111,FATAL,
"unable to setgid");
30 logmsg(
fatal,111,FATAL,
"$UID not set");
32 if (prot_uid((
int)
id) == -1)
33 logmsg(
fatal,111,FATAL,
"unable to setuid");
void droproot(const char *fatal)