• Home
  • Raw
  • Download

Lines Matching refs:restricted

5    :synopsis: Basic restricted execution framework.
21 restricted versions of the standard Python functions :meth:`eval`,
23 executed in this restricted environment will only have access to modules and
56 useful when changing the mechanics of :keyword:`import` within the restricted
69 It is important to be aware that code running in a restricted environment can
70 still call the :func:`sys.exit` function. To disallow restricted code from
71 exiting the interpreter, always protect calls that cause restricted code to run
74 restricted environment is not sufficient --- the restricted code could still use
98 code object, which will be evaluated in the restricted environment's
106 compiled code object, which will be executed in the restricted environment's
112 Execute the Python code contained in the file *filename* in the restricted
116 with ``r_``, but the code will be granted access to restricted versions of the
123 in the restricted environment.
129 be executed in the restricted environment.
134 Execute the Python code contained in the file *filename* in the restricted
138 implicitly called by code executing in the restricted environment. Overriding
140 restricted environment.
151 Method called when :func:`open` is called in the restricted environment. The
166 Unload the module object *module* (remove it from the restricted environment's
169 And their equivalents with access to restricted standard I/O streams:
192 Defining restricted environments
205 programs running in the restricted environment. The value for :class:`RExec` is
225 performed in the restricted environment. The value for :class:`RExec` is the
232 available to programs running in the restricted environment. The value for
243 will be available to programs running in the restricted environment. The value
255 the restricted execution mode by putting a forged byte-compiled file
283 for example, code in the restricted environment won't be able to open a file