Mailing List Archive

any experience with chroot-ed apache/mod_backhand??
Hi list,
did somebody of you set up anapache with mod_backhand in a
chroot-environment?

My apache works fine in the jail as long as I do not activate mod_backhand
in httpd.conf.
But if I uncomment the LoadModule backhand_module ... line, apache cannot
start anymore.
ErrorMessage:
[error] (2)No such file or directory: gethostname failed.

No entries in error_log.
I think apache / mod_backhand.so miss some libaries in my jail. But ldd
doesn't help at this point.
Maybe some more /dev/- nodes have to be created as well.
The unix socket functions have to be available in the jail. But how?
Any experience? Or hints?

I am using SuSE Linux 8.0, apache 1.3.27 and mod_backhand 1.2.2
And again: without mod_backhand my jailed apache works very well (and even
on the same machine a not chrooted apache woks well with mod_backhand).

Thanks,
Tobias

--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!
any experience with chroot-ed apache/mod_backhand?? [ In reply to ]
tobimarq@gmx.de wrote:
> I am using SuSE Linux 8.0, apache 1.3.27 and mod_backhand 1.2.2
> And again: without mod_backhand my jailed apache works very well (and even
> on the same machine a not chrooted apache woks well with mod_backhand).

Linux doesn't have a system call API for retrieving system information.
Instead you have to open files in /proc/. If you chroot, there is an obvious
problem with reading from /proc/.

In linux 2.4.x and up you should be able to do a mount --bind to make /proc
available under the chroot. This is just a guess as I have never tried this
myself. But perhaps, somethine like this will work:

mount --bind /proc /path/to/chroot/proc

--
Theo Schlossnagle
Principal Consultant
OmniTI Computer Consulting, Inc. -- http://www.omniti.com/
Phone: +1 410 872 4910 x201 Fax: +1 410 872 4911
1024D/82844984/95FD 30F1 489E 4613 F22E 491A 7E88 364C 8284 4984
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7