Mail Archives: djgpp-workers/1999/03/12/00:28:41.1
> A feature missing from `chroot' (unless I miss something) is that on
> Unix, the root is inherited across processes. That is important since
> `chroot' is often used for security, so that no matter what the luser
> does, they are confined to that directory.
>
Hi Nate,
Every time chroot is called and the root changed, the environment
variables ROOT and CHROOT_UNIX are set. Since child programs
inherit their environment, they will inherit these variables. The startup
has been modified so those variables are checked for and, if present,
chroot is called.
But for the chroot changes to be effective for its intended use, all
children spawned by the parent must also be compiled with the chroot
code or else the children will have free reign and security is broken. I'll
update the docs so people will know about this.
Mark
---
Mark Elbrecht
snowball3 AT usa DOT net http://members.xoom.com/snowball3/
- Raw text -