I'm running a program that's sgid, and it has a command-line interpreter from which I can execute unix commands. I wrote a perl script to modify data in a private file that I own so I can run it from inside this program. It works fine outside of the sgid program, but inside, the perl generates the error,
Insecure dependency in open while running with -T switch at filename line 152.
(Line 152 is the line that opens the data file for writing, and I am not running with the -T switch.)
Anticipating the taintedness of the open call (from the perl reference), I have the following in the program:
use English;
$EGID = $GID; $EUID = $UID;
But, it still gives me the error. What am I missing?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.