You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
777 B

From: catlee at globalserve.net (Chris AtLee)
Date: Thu, 22 Apr 1999 08:12:06 -0400
Subject: stdout in a restricted environment
Message-ID: <7fn3rs$1v9$1@whisper.globalserve.net>
X-UID: 99
I'm trying to make a program that will enable users to connect to a server
running a python interpreter and be able to program in a restricted
environment in that interpreter. The rexec object has methods called s_exec
and s_eval which are supposed to use secure forms of the standard I/O
streams, but I can't redefine them to be something else (specifically, an
object that sends the response back to the client) Any pointers on how to
go about redirecting the standard I/O streams from a restricted environment?
Cheers,
Chris