How to permanently remove __import__?

Steven Taschuk staschuk at
Wed Jun 18 17:52:47 CEST 2003

Quoth martin z:
> So, I need to disable access to the standard filesystem.  I see two options
> on how to do this: disable/override
> all of the built-in functions that access the filesystem (the imp module,
> open, etc) or somehow get rid of the
> filesystem "under the hood".

Have you considered exploiting OS-level security, say, running in
a jail or as a limited-privilege user?

Steven Taschuk                                7\ 7'Z {&~         .
staschuk at                        Y r          --/hG-
                                            (__/ )_             1^1`

More information about the Python-list mailing list