Re: Linux 2.2.18pre21

Matthias Andree
2000-11-16T23:26:34Z

On Thu, 16 Nov 2000, jesse wrote:

> But the problem is because you can call chroot when you're already chrooted.

It's a non-problem. chroot()ing again may also be used to de-escalate
privileges, and if you want to prevent breaking out of a chroot, drop
root privileges, since chroot is a privileged call. And DO USE setuid,
not seteuid or something (otherwise the saved set-uid will bite you).

--
Matthias Andree