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

From: <juergen.northe@dont-contact.us>
Date: Thu, 30 Aug 2001 09:22:49 +0200

I read "man chroot" and previously installed sucessfully bind8 in a
chroot-jail.

I know that it is not ok to add the chroot-paths to the location of the
files and directory,
because the chroot /chroot/squid switches the root from /chroot/squid to /.

The thing is that if I configure squid to chroot /chroot/squid and give the
paths
without /chroot/squid, the files are not found. If I add the /chroot/squid/
path to
the tags, the parent-process is getting started but the squid-child dies
with the
"canīt find /chroot/squid/etc/squid/errors/ERR_READ_TIMEOUT".

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 Thu Aug 30 2001 - 01:23:59 MDT

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