Skip to main content.
home | support | download

Back to List Archive

RE: chroot jail

From: Dan Stieneke <Dan.Stieneke(at)not-real.ontariooregon.org>
Date: Thu May 27 2004 - 19:25:22 GMT
I've answered my own question. Once I installed /usr/libexec/ld.so, I
started getting meaningfull error messages ("can't find library:
<somelibrary>"). Below is a listing of what is needed to make this work,
in case anybody else out there wants to run on OpenBSD.

# ls -lR /usr
total 12
drwxr-xr-x  2 0  1  512 May 27 19:16 lib
drwxr-xr-x  2 0  1  512 May 27 19:17 libexec
drwxr-xr-x  4 0  1  512 May 27 18:50 local

/usr/lib:
total 3668
-r--r--r--  1 0  1   657196 May 27 19:01 libc.so.30.3
-r--r--r--  1 0  1  1003837 May 27 19:09 libiconv.so.4.0
-r--r--r--  1 0  1    89607 May 27 19:01 libm.so.1.0
-r--r--r--  1 0  1    66512 May 27 18:57 libz.so.3.0

/usr/libexec:
total 64
-r-xr-xr-x  1 0  1  30930 May 27 19:02 ld.so

/usr/local:
total 8
drwxr-xr-x  2 0  1  512 May 27 18:49 bin
drwxr-xr-x  2 0  1  512 May 27 19:14 lib

/usr/local/bin:
total 1376
-rwxr-xr-x  1 0  1  680919 May 27 18:48 swish-e

/usr/local/lib:
total 3136
-rwxr-xr-x  1 0  1  575699 May 27 18:50 libswish-e.so.2.0
-rwxr-xr-x  1 0  1  981723 May 27 18:55 libxml2.so.8.5

==========


>Our current webserver is an OpenBSD 3.3 box running chrooted apache 
>(at /var/www) & swish-e 2.4.0-pr1. Indexing happens via cron from a 
>regular user. Searching happens in the chroot jail - my .php page
calls 
>swish-e and interprets the output. Everything works as expected.

>We're upgrading to OpenBSD 3.5. I've done configure/make/make install

>"normally" and with --prefix=/var/www to put libraries & such into
the
> correct place inside the jail.

>Indexing works as expected, searching from outside the jail works as 
>expected, running swish-e inside the jail results in "Abort trap". I'm

>assuming I'm missing libraries w/in the jail. Can you tell me what
libraries 
>need to be accessible inside the jail?

>Thanks,
>Dan Stieneke
>City of Ontario, OR
Received on Thu May 27 12:25:22 2004