dissident has asked for the wisdom of the Perl Monks concerning the following question:
The perlsec section about Taint mode (https://perldoc.perl.org/perlsec#Taint-mode) begins with a statement
"By default, Perl automatically enables a set of special security checks, called taint mode".
So the question arises:
How to completely turn off these default-enabled "special security checks" which are enabled even without the -T option?
Or: How to completely disable the said "taint mode"?
There are several legit reasons to do so:
- To find out quickly whether these "security checks" are what causes your script to not work.
- When not needed at all in the given scenario.
- To make Perl more efficient, runtime-wise and energy-wise.
These checks adds a runtime overhead of ~10% (see https://blogs.perl.org/users/neilb/2021/08/making-taint-support-optional-in-perl.html)
Thus, in many scenarios this checking is not only utterly unnecessary, but actually detrimental.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to disable taint checking by Perl?
by Corion (Patriarch) on Oct 09, 2023 at 10:56 UTC | |
Re: How to disable taint checking by Perl?
by Polyglot (Chaplain) on Oct 25, 2023 at 00:00 UTC | |
by Anonymous Monk on Oct 25, 2023 at 08:24 UTC | |
by Polyglot (Chaplain) on Oct 25, 2023 at 11:34 UTC | |
by Corion (Patriarch) on Oct 25, 2023 at 13:16 UTC | |
by Polyglot (Chaplain) on Oct 25, 2023 at 13:40 UTC | |
|