FW: [Icecast] Tip: using icecast in chroot mode may break timestamp inaccess.log

Klaas Jan Wierenga k.j.wierenga at home.nl
Wed Sep 15 12:21:42 PDT 2004


Please post to the mailing list the next time Ralf.

I'm not using yp directory listings, but I can guess why it is not working.
You're probably missing the libcurl.so library in your chroot jail
directories. Here's the listing of files I have in the chroot jail:

-----%< cut here

> ls -R
.:
admin  etc  lib  opt  usr  var  web

./admin:
listclients.xsl  listmounts.xsl  manageauth.xsl  moveclients.xsl
response.xsl  stats.xsl

./etc:
localtime

./lib:
ld-linux.so.2    libcrypto.so.4  libgcc_s-3.3.2-20031023.so.1
libresolv.so.2  tls
libcom_err.so.2  libdl.so.2      libgcc_s.so.1                 libssl.so.4

./lib/tls:
libc.so.6  libm.so.6  libpthread.so.0

./opt:
icecast

./opt/icecast:
etc

./opt/icecast/etc:
icecast.xml

./usr:
lib

./usr/lib:
libcurl.so.2         libk5crypto.so.3  libogg.so.0     libxml2.so.2
libz.so.1
libgssapi_krb5.so.2  libkrb5.so.3      libvorbis.so.0  libxslt.so.1

./var:
log  run

./var/log:
icecast

./var/log/icecast:
access.log  error.log

./var/run:
icecast.pid

./web:
corner_bottomleft.jpg   corner_topleft.jpg   icecast.png  recordings
status.xsl
corner_bottomright.jpg  corner_topright.jpg  key.gif      status2.xsl
style.css

---%< cut here

I've figured out which shared libraries icecast is depending on by running
the ldd command on the icecast binary:

-----%< cut here

> ldd icecast
        libcurl.so.2 => /usr/lib/libcurl.so.2 (0x009e8000)
        libssl.so.4 => /lib/libssl.so.4 (0x00b00000)
        libcrypto.so.4 => /lib/libcrypto.so.4 (0x00101000)
        libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x00a5a000)
        libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00a71000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0x0082a000)
        libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x00adc000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x00a46000)
        libdl.so.2 => /lib/libdl.so.2 (0x00649000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x00cbe000)
        libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00671000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0x006b9000)
        libz.so.1 => /usr/lib/libz.so.1 (0x006a6000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x0064e000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00625000)
        libc.so.6 => /lib/tls/libc.so.6 (0x004ea000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0x001f3000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x004d2000)

-----%< cut here

Hope this info is helpful to you.

Regards,
KJ

-----Oorspronkelijk bericht-----
Van: ACiDAngel [mailto:list-icecast at rewtbox.de]
Verzonden: dinsdag 14 september 2004 19:29
Aan: 'Klaas Jan Wierenga'
Onderwerp: AW: [Icecast] Tip: using icecast in chroot mode may break
timestamp inaccess.log




Klaas Jan Wierenga wrote:
>
> Hi all,
>
> Just thought I'd share this little bit of information.
>
> If you're running Icecast in a chroot jail the timestamps in

I see you are using it chrooted - did you recognize any problems with yp
directory listenings?
My Icecast2 does not announce itself to the yp servers but if I just
deactivate chroot it does.
Maybe you have a solution for this too?
Did you copy any libs and/or files other than "locales" into the chroot?

Regards
Ralf





More information about the Icecast mailing list