Linux SUID

Helmut Jarausch jarausch at skynet.be
Fri Apr 25 11:05:18 EDT 2003


Hi,
upto now my favourite scripting language is (was?) Perl.
There one can turn on the SUID-exec permission bit which
is honoured by Perl.
In this situation Perl enters a special "taint" mode where
anything from the outside world like the environment or anything
read in is tainted. If one tries to use a tained variable in
critical operation like 'exec' or 'open' Perl refuses to do so.
So this mechanism is safer than write an SUID program in C/C++ .

Is there something similar in Python?

Please no lectures on the riscs of using suid programs.

Many thanks for a hint,

Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany





More information about the Python-list mailing list