See All Titles |
![]() ![]() Restricted ExecutionRestricted Execution is the basic framework in Python that allows the segregation of trusted and untrusted code. The next modules prevent access to critical operations mostly because a program running in trusted mode can create an execution environment in which untrusted code can be executed with limited privileges. rexecThe rexec module implements a basic restricted execution framework by encapsulating, in a class, the attributes that specify the capabilities for the code to execute. Code executed in this restricted environment will only have access to modules and functions that are believed to be safe. BastionThe Bastion module provides restricted access to objects. This module is able to provide a way to forbid access to certain attributes of an object.
|
Index terms contained in this sectionexecutionRestricted Execution library libraries Restricted Execution Restricted Execution library |
© 2002, O'Reilly & Associates, Inc. |