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
80a04a48
Kaydet (Commit)
80a04a48
authored
Agu 27, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add strong security warning about the rexec module.
Closes SF patch #600861. Minor markup changes.
üst
246beb25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
librexec.tex
Doc/lib/librexec.tex
+17
-5
No files found.
Doc/lib/librexec.tex
Dosyayı görüntüle @
80a04a48
...
...
@@ -5,7 +5,6 @@
\modulesynopsis
{
Basic restricted execution framework.
}
This module contains the
\class
{
RExec
}
class, which supports
\method
{
r
_
eval()
}
,
\method
{
r
_
execfile()
}
,
\method
{
r
_
exec()
}
, and
\method
{
r
_
import()
}
methods, which are restricted versions of the standard
...
...
@@ -15,10 +14,23 @@ Code executed in this restricted environment will
only have access to modules and functions that are deemed safe; you
can subclass
\class
{
RExec
}
to add or remove capabilities as desired.
\note
{
The
\class
{
RExec
}
class can prevent code from performing
unsafe operations like reading or writing disk files, or using TCP/IP
sockets. However, it does not protect against code using extremely
large amounts of memory or processor time.
}
\begin{notice}
[warning]
While the
\module
{
rexec
}
module is designed to perform as described
below, it does have a few known vulnerabilities which could be
exploited by carefully written code. Thus it should not be relied
upon in situations requiring ``production ready'' security. In such
situations, execution via sub-processes or very careful
``cleansing'' of both code and data to be processed may be
necessary. Alternatively, help in patching known
\module
{
rexec
}
vulnerabilities would be welcomed.
\end{notice}
\begin{notice}
The
\class
{
RExec
}
class can prevent code from performing unsafe
operations like reading or writing disk files, or using TCP/IP
sockets. However, it does not protect against code using extremely
large amounts of memory or processor time.
\end{notice}
\begin{classdesc}
{
RExec
}{
\optional
{
hooks
\optional
{
, verbose
}}}
Returns an instance of the
\class
{
RExec
}
class.
...
...
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