Re: [squid-users] squid in chroot, child-process can īt start because of ERR_READ_TIMEOUT

From: Colin Campbell <sgcccdc@dont-contact.us>
Date: Thu, 30 Aug 2001 09:16:17 +1000 (EST)

Hi,

I suggest you "man chroot". You hvae missed the point that the directory
to which you chroot() becomes "/" to your process. Thus if you reference
/chroot/squid/etc/squid/errors/ERR_READ_TIMEOUT, that file must exist as
/chroot/squid/chroot/squid/etc/squid/errors/ERR_READ_TIMEOUT. You need to
change the config file to reflect the fact that /chroot/squid is the new
root. Looking at the structure you show below, I suspect you really should
be doing "chroot /chroot" because once you "chroot /chroot/squid" none of
the files above that directory are visible, eg /chroot/etc cannot be seen
by the squid process.

Colin

On Wed, 29 Aug 2001 juergen.northe@junghans-fwt.de wrote:

> Hi !
> i have compiled squid-2.3STABLE5 under RH 7.1 and created a chroot-jail in
> /chroot/squid with the files listed at the end of this message.
> In /chroot/squid/etc/squid/squid.conf
> i modified the tags like:
> cache_effective_user / group squid
> icon_directory chroot/squid/etc/squid/icons
> error_directory /chroot/squid/etc/squid/errors
> pid_filename /chroot/squid/var/log/squid/squid.pid
> chroot /chroot/squid
Received on Wed Aug 29 2001 - 17:16:39 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:57 MST