rdww has asked for the wisdom of the Perl Monks concerning the following question:
I build the following format in a setuid script with a function I call BuildFormat. The last statement then returns this as a string. When I call eval(BuildFormat()) to cause the format to be defined I get the following error message
Insecure dependency in eval while runing setuid at /dev/fd/3 line 275
I need to build & rebuild this format on the fly several times though out the life of the program. Any suggestions on how to get around?
Thanks Robert Walkupformat STDOUT_TOP = SID SERIAL# USERNAME OSUSER MACHINE PROGRAM PR +OCESS STATUS SPID ---- -------- --------- ------- ----------- ----------------------- -- +------ --------- ------ . format STDOUT = @<<< @<<<<<<< @<<<<<<<< @<<<<<< @<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<< @< +<<<<<< @<<<<<<<< @<<<<< $cols[0], $cols[1], $cols[2], $cols[3], $cols[4], $cols[5], $cols[6], +$cols[7], $cols[8] .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setuid script returning Insecure dependency
by tachyon (Chancellor) on Dec 25, 2002 at 10:26 UTC | |
|
Re: setuid script returning Insecure dependency
by dws (Chancellor) on Dec 25, 2002 at 04:08 UTC | |
by rdww (Novice) on Dec 30, 2002 at 14:04 UTC | |
by dws (Chancellor) on Dec 30, 2002 at 18:41 UTC |