running a chrooted aolserver process under strace:

* strace -f -e file aolserver4-nsd -f -u www-data -g www-data -r /var/lib/aolserver4/main -b localhost:8000 -t /etc/aolserver4/main.tcl
I got following file-systems accesses after the chroot call:
following this: looking for several locales like: * /usr/lib/locale/de@euro/LC_CTYPE
finally this one
it is fatal not to have this file!
this shows up as error in the logfiles
after loadings nscgi, it is fatal not to have this device!


mkdir proc dev etc
mkdir -p usr/lib/tcl8.4
mknod -m 666 dev/null c 1 3
cp /etc/localtime etc
cp -a /usr/lib/tcl8.4/encoding usr/lib/tcl8.4
:> usr/lib/tcl8.4/init.tcl # empty file
getent group www-data > etc/group
mount -t proc proc proc # on startup? eek: ngroups_max is not in my /proc!

library loading

  • /usr/lib/tcl8.4/init.tcl
  • log/error.log
  • log/pid
  • bin/*.so - dynamic libraries:
    • nssock
    • nslog: etc/localtime, log/domain/access.log
    • nscgi: dev/null, cgi-bin
  • usr/lib/tcl8.4/init.tcl
  • bin/init.tcl (dynamic libs)
  • TCL-libraries
    1. bin/init.tcl
    2. modules/tcl/init.tcl
    3. domain/tcl/init.tcl
    4. modules/tcl/.tcl
    5. domain/tcl/.tcl * from here only loaded modules lib
    6. modules/tcl/lib/init.tcl
    7. domain/tcl/lib/init.tcl
    8. modules/tcl/lib/.tcl
    9. domain/tcl/lib/.tcl