Re: [SLUG] SPF, chroot'd Postfix2, and Perl script

From: Backward Thinker (backwardthinker@juno.com)
Date: Thu Sep 16 2004 - 15:42:01 EDT


> I'm trying to run a perl script in a chroot'd environment.

Perl is a swiss-army knife on steroids, and as such has a lot
of libraries that will need to be in the the chrooted
environment for it to work. First of all, copy your perl binary
into the chroot. Also run ldd on the binary and make sure copies
of those libraries are also in the chroot jail. Once that's all
set... you can chroot into /var/spool/postfix, and see if perl
will run. You can run strace perl and watch for failed opens to
get some idea if any other libraries are required that the ldd did
not turn up. After the perl interpreter is working in the jail the
last step is to try to run your perl script in the chroot jail.
Again, you may want to strace it if some library appears to be
missing.

Once you get your script working in the chroot jail itself, then
you can try your luck with it running under postfix. But one
step at a time here ... :)

GL,
~ Daniel

________________________________________________________________
Get your name as your email address.
Includes spam protection, 1GB storage, no ads and more
Only $1.99/ month - visit http://www.mysite.com/name today!
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:46:45 EDT