Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
eabd9a13
Kaydet (Commit)
eabd9a13
authored
May 13, 2003
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #729817] Document the rexec and Bastion modules as dead
üst
032bd0a9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
19 deletions
+17
-19
libbastion.tex
Doc/lib/libbastion.tex
+5
-0
librestricted.tex
Doc/lib/librestricted.tex
+7
-19
librexec.tex
Doc/lib/librexec.tex
+5
-0
No files found.
Doc/lib/libbastion.tex
Dosyayı görüntüle @
eabd9a13
...
@@ -4,7 +4,12 @@
...
@@ -4,7 +4,12 @@
\declaremodule
{
standard
}{
Bastion
}
\declaremodule
{
standard
}{
Bastion
}
\modulesynopsis
{
Providing restricted access to objects.
}
\modulesynopsis
{
Providing restricted access to objects.
}
\moduleauthor
{
Barry Warsaw
}{
bwarsaw@python.org
}
\moduleauthor
{
Barry Warsaw
}{
bwarsaw@python.org
}
\versionchanged
[Disabled module]
{
2.3
}
\begin{notice}
[warning]
The documentation has been left in place to help in reading old code
that uses the module.
\end{notice}
% I'm concerned that the word 'bastion' won't be understood by people
% I'm concerned that the word 'bastion' won't be understood by people
% for whom English is a second language, making the module name
% for whom English is a second language, making the module name
...
...
Doc/lib/librestricted.tex
Dosyayı görüntüle @
eabd9a13
\chapter
{
Restricted Execution
\label
{
restricted
}}
\chapter
{
Restricted Execution
\label
{
restricted
}}
In general, Python programs have complete access to the underlying
\begin{notice}
[warning]
operating system throug the various functions and classes, For
In Python 2.3 these modules have been disabled due to various known
example, a Python program can open any file for reading and writing by
and not readily fixable security holes. The modules are still
using the
\function
{
open()
}
built-in function (provided the underlying
documented here to help in reading old code that uses the
operating system gives you permission!). This is exactly what you want
\module
{
rexec
}
and
\module
{
Bastion
}
modules.
for most applications.
\end{notice}
There exists a class of applications for which this ``openness'' is
inappropriate. Take Grail: a Web browser that accepts ``applets,''
snippets of Python code, from anywhere on the Internet for execution
on the local system. This can be used to improve the user interface
of forms, for instance. Since the originator of the code is unknown,
it is obvious that it cannot be trusted with the full resources of the
local machine.
\emph
{
Restricted execution
}
is the basic framework in Python that allows
\emph
{
Restricted execution
}
is the basic framework in Python that allows
for the segregation of trusted and untrusted code.
It
is based on the
for the segregation of trusted and untrusted code.
The framework
is based on the
notion that trusted Python code (a
\emph
{
supervisor
}
) can create a
notion that trusted Python code (a
\emph
{
supervisor
}
) can create a
``padded cell' (or environment) with limited permissions, and run the
``padded cell' (or environment) with limited permissions, and run the
untrusted code within this cell. The untrusted code cannot break out
untrusted code within this cell. The untrusted code cannot break out
...
@@ -66,10 +58,6 @@ environments:
...
@@ -66,10 +58,6 @@ environments:
\localmoduletable
\localmoduletable
\begin{seealso}
\begin{seealso}
\seetitle
[http://www.python.org/doc/howto/rexec/]
{
Restricted Execution HOWTO
}
{
Andrew Kuchling's tutorial on the use of the restricted
execution facilities in Python.
}
\seetitle
[http://grail.sourceforge.net/]
{
Grail Home Page
}
\seetitle
[http://grail.sourceforge.net/]
{
Grail Home Page
}
{
Grail, an Internet browser written in Python, uses these
{
Grail, an Internet browser written in Python, uses these
modules to support Python applets. More
modules to support Python applets. More
...
...
Doc/lib/librexec.tex
Dosyayı görüntüle @
eabd9a13
...
@@ -3,7 +3,12 @@
...
@@ -3,7 +3,12 @@
\declaremodule
{
standard
}{
rexec
}
\declaremodule
{
standard
}{
rexec
}
\modulesynopsis
{
Basic restricted execution framework.
}
\modulesynopsis
{
Basic restricted execution framework.
}
\versionchanged
[Disabled module]
{
2.3
}
\begin{notice}
[warning]
The documentation has been left in place to help in reading old code
that uses the module.
\end{notice}
This module contains the
\class
{
RExec
}
class, which supports
This module contains the
\class
{
RExec
}
class, which supports
\method
{
r
_
eval()
}
,
\method
{
r
_
execfile()
}
,
\method
{
r
_
exec()
}
, and
\method
{
r
_
eval()
}
,
\method
{
r
_
execfile()
}
,
\method
{
r
_
exec()
}
, and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment