Allow restricted code to get byteorder, getdefaultencoding(),
getrefcount(), maxunicode, and version_info.
This commit is contained in:
parent
83d0fd2fd1
commit
a0f453b2b1
|
@ -143,8 +143,9 @@ class RExec(ihooks._Verbose):
|
||||||
'stat', 'times', 'uname', 'getpid', 'getppid',
|
'stat', 'times', 'uname', 'getpid', 'getppid',
|
||||||
'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid')
|
'getcwd', 'getuid', 'getgid', 'geteuid', 'getegid')
|
||||||
|
|
||||||
ok_sys_names = ('copyright', 'exit', 'hexversion', 'maxint', 'platform',
|
ok_sys_names = ('byteorder', 'copyright', 'exit', 'getdefaultencoding',
|
||||||
'ps1', 'ps2', 'version')
|
'getrefcount', 'hexversion', 'maxint', 'maxunicode',
|
||||||
|
'platform', 'ps1', 'ps2', 'version', 'version_info')
|
||||||
|
|
||||||
nok_builtin_names = ('open', 'file', 'reload', '__import__')
|
nok_builtin_names = ('open', 'file', 'reload', '__import__')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue