Commit 4c0152af authored by Julien Muchembled's avatar Julien Muchembled

restricted: allow bz2 (except BZ2File) & zlib

parent 079b8a74
......@@ -312,7 +312,11 @@ import urlparse
allow_type(urlparse.ParseResult)
allow_type(urlparse.SplitResult)
allow_module('struct')
allow_module('zlib')
ModuleSecurityInfo('bz2').declarePublic(
'compress', 'decompress', 'BZ2Compressor', 'BZ2Decompressor',
)
ModuleSecurityInfo('os.path').declarePublic(
# Allow functions accessing neither file system nor environment.
'abspath', 'basename', 'commonprefix', 'dirname', 'isabs', 'join',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment