Re: vserver and chroot's

About this list Date view Thread view Subject view Author view Attachment view

From: Nick Craig-Wood (ncw_at_axis.demon.co.uk)
Date: Thu Jan 24 2002 - 09:59:38 EST


On Thu, Jan 24, 2002 at 01:10:04PM +0100, Martin Josefsson wrote:
> Disallowing chroot alltogether if run in an chroot or limiting it like
> FreeBSD does is probably a good idea.
>
> http://www.FreeBSD.org/cgi/man.cgi?query=chroot&sektion=2&apropos=0&manpath=FreeBSD+4.0-RELEASE

That is nice - configurable too!

...

A simple fix might be in sys_chroot, if root != "/" then cd / after
doing the chroot. This introduces very mild POSIX breakage (not many
programs do a chroot in a chroot) and plugs this hole.

-- 
Nick Craig-Wood
ncw_at_axis.demon.co.uk

About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:00 EDT