chroot'ed demon process
Michael Ströder
michael at stroeder.com
Mon Jun 26 19:09:38 EDT 2000
Johannes Stezenbach wrote:
>
> Michael Ströder <michael at stroeder.com> wrote:
> >Is it possible to call a chroot() in a demon process running under
> >Python after reading all configuration data?
>
> If python would have a chroot(), you would either have to call it
> after any modules have been imported or make the Python library
> and any shared libraries and support files needed for them
> available in the chroot "jail".
Yes. Other applications calling chroot() also have to take care of
getting shared libs etc. before "going into jail".
> You cannot access files outside of
> the chroot environment (that's the whole point of chroot).
Yes.
> Swigging chroot() or adding it to module posix would be trivial.
Hmm.
> Also see the chroot utility:
> man 1 chroot
With the chroot utility I have to put all files needed into the
chroot jail including the Python interpreter. Well, it's a start but
not really what I was looking for.
Ciao, Michael.
More information about the Python-list
mailing list