[mod_python] python & chrooted area

John isofroni at cc.uoi.gr
Thu Dec 2 12:45:34 EST 2004


----- Original Message ----- 
From: "Nick" <nick at dd.revealed.net>
To: "John" <isofroni at cc.uoi.gr>; <mod_python at modpython.org>
Sent: Thursday, December 02, 2004 5:18 PM
Subject: Re: [mod_python] python & chrooted area


> Type ldd libpython2.3.so, then ldd lib/lib-dynload/*, and you'll see the
> scope of the problem.
>
> Nick
>
> John wrote:
> > What about if you copy all the python related files to the chroot area?
> >
> >
> > ----- Original Message ----- 
> > From: "Jon-Pierre Gentil" <jgentil at sebistar.net>
> > To: <mod_python at modpython.org>
> > Sent: Wednesday, December 01, 2004 8:18 PM
> > Subject: Re: [mod_python] python & chrooted area
> >
> >
> >
> >>-----BEGIN PGP SIGNED MESSAGE-----
> >>Hash: RIPEMD160
> >>
> >>Nick wrote:
> >>
> >>
> >>>>Thank you for the advice but i have already a chrooted area and i
> >
> > lately
> >
> >>>>installed the mod_python. (to a non chrooted apache in the same
> >>>>system). Now
> >>>>i have to copy the /usr/local/apache/bin to the chrooted are and
> >>>>(possibly)
> >>>>the mod_python.so and some files from the python installation.
> >>>>
> >>>>Any ideas on what files?
> >>>
> >>>
> >>>I imagine you'd need libpython2.X.so mainly just to get it running at
> >>>all. You're going to need most if not all of the modules in
> >>>/usr/lib/python (or perhaps in your case /usr/local/python/lib?) to do
> >>>anything interesting.
> >>
> >>Python itself doesn't work very well chrooted, especially with apache.
> >> I tried several times to get it working, but overall, python just has
> >>too many dependancies to really successfully work in a chroot
environment.
> >>
> >>But, good luck!  Let us know if you accomplish it.
> >>-----BEGIN PGP SIGNATURE-----
> >>Version: GnuPG v1.2.5 (GNU/Linux)
> >>
> >>iEYEAREDAAYFAkGuCvkACgkQOrVFmaIbww4MjACdFE1caafVnqlfBcBZnqlPcAAd
> >>fAsAoKhRw4RsMSk+vBk2mXEg6nq38Ix8
> >>=01/4
> >>-----END PGP SIGNATURE-----
> >>_______________________________________________
> >>Mod_python mailing list
> >>Mod_python at modpython.org
> >>http://mailman.modpython.org/mailman/listinfo/mod_python
> >
> >
> >
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
>
>

Ok, i managed to chroot apache, by monitoring the open files (lsof) during a
py script execution.




More information about the Mod_python mailing list